mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
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:
parent
4714e95896
commit
2445414aa0
19 changed files with 102 additions and 93 deletions
|
@ -6544,7 +6544,7 @@ void EditorPropertyVisualShaderMode::_option_selected(int p_which) {
|
|||
return;
|
||||
}
|
||||
|
||||
ShaderEditorPlugin *shader_editor = Object::cast_to<ShaderEditorPlugin>(EditorNode::get_singleton()->get_editor_data().get_editor("Shader"));
|
||||
ShaderEditorPlugin *shader_editor = Object::cast_to<ShaderEditorPlugin>(EditorNode::get_editor_data().get_editor_by_name("Shader"));
|
||||
if (!shader_editor) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue