Cleanup metadata usage

This commit is contained in:
kobewi 2022-04-01 20:30:23 +02:00
parent 066692b6d0
commit 1dc7bcc83c
18 changed files with 58 additions and 144 deletions

View file

@ -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;