diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-05-26 20:36:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-26 20:36:30 +0200 |
| commit | bfcb1d2d418e7a28c1cb081913c0221b5ea0ec04 (patch) | |
| tree | 456e979b43c2c698c84ded9c30f519b8958e52c6 /editor/plugins/script_editor_plugin.cpp | |
| parent | 78bbb2cae16bdb2799c2e6bf91eb802d373e4284 (diff) | |
| parent | af3f047f490da67af8b8ec5b662b9e6fc7c7dde9 (diff) | |
| download | redot-engine-bfcb1d2d418e7a28c1cb081913c0221b5ea0ec04.tar.gz | |
Merge pull request #49109 from Chaosus/fix_console_errors
Fixed console error spam at editor startup (about invalid edited scene index)
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 1147267ce0..623e4ea66e 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1504,8 +1504,10 @@ void ScriptEditor::_notification(int p_what) { recent_scripts->set_as_minsize(); - _update_script_colors(); - _update_script_names(); + if (is_inside_tree()) { + _update_script_colors(); + _update_script_names(); + } } break; case NOTIFICATION_READY: { |
