Avoid unnecessary inspector updates when loading or switching scenes
This should result in some noticeable performance improvements, aside from fixing bugs due to conflicts in logic. This also simplifies some related code identified while debugging.
This commit is contained in:
@ -458,7 +458,7 @@ void VersionControlEditorPlugin::_force_push() {
|
||||
}
|
||||
|
||||
void VersionControlEditorPlugin::_update_opened_tabs() {
|
||||
Vector<EditorData::EditedScene> open_scenes = EditorNode::get_singleton()->get_editor_data().get_edited_scenes();
|
||||
Vector<EditorData::EditedScene> open_scenes = EditorNode::get_editor_data().get_edited_scenes();
|
||||
for (int i = 0; i < open_scenes.size(); i++) {
|
||||
if (open_scenes[i].root == NULL) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user