mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Improve editor state initialization
This commit is contained in:
@@ -296,6 +296,13 @@ Dictionary EditorData::get_scene_editor_states(int p_idx) const {
|
||||
}
|
||||
|
||||
void EditorData::set_editor_states(const Dictionary &p_states) {
|
||||
if (p_states.is_empty()) {
|
||||
for (EditorPlugin *ep : editor_plugins) {
|
||||
ep->clear();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
List<Variant> keys;
|
||||
p_states.get_key_list(&keys);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user