diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-05-06 07:43:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-06 07:43:52 +0200 |
| commit | 89449bd0e30f036f0aa21b2cb11d302bad9052be (patch) | |
| tree | d08d774fa53fc3368b13a23c0c3b5a9cd6327d57 /editor/plugins/script_editor_plugin.cpp | |
| parent | 066692b6d081f1577bc0ebcd84da204339218ec6 (diff) | |
| parent | 1dc7bcc83c81b32c3651f3fa869055a0cce22085 (diff) | |
| download | redot-engine-89449bd0e30f036f0aa21b2cb11d302bad9052be.tar.gz | |
Merge pull request #59804 from KoBeWi/sponsored_by_Meta
Cleanup metadata usage
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 0d33a7bdc6..5240fdf836 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1950,11 +1950,11 @@ void ScriptEditor::_update_script_colors() { script_list->set_item_custom_bg_color(i, Color(0, 0, 0, 0)); if (script_temperature_enabled) { - if (!n->has_meta("__editor_pass")) { + int pass = n->get_meta("__editor_pass", -1); + if (pass < 0) { continue; } - int pass = n->get_meta("__editor_pass"); int h = edit_pass - pass; if (h > hist_size) { continue; |
