Add Engine.print_error_messages property to disable printing errors

This can be used during unit test suite runs to hide error and warning
messages.

Care should be taken when using this feature, as it can hide important
information if used wrongly.
This commit is contained in:
Hugo Locurcio
2021-05-01 23:09:48 +02:00
parent 33a0fb6e02
commit 0eb9b414c1
6 changed files with 32 additions and 1 deletions

View File

@ -660,6 +660,9 @@ public:
void set_editor_hint(bool p_enabled);
bool is_editor_hint() const;
void set_print_error_messages(bool p_enabled);
bool is_printing_error_messages() const;
_Engine() { singleton = this; }
};