1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Update property keying state without a full Inspector rebuild

(cherry picked from commit f68eb4a967)
This commit is contained in:
Yuri Sizov
2023-03-07 18:41:54 +01:00
parent e1de9f9fc4
commit 636d7905b0
2 changed files with 13 additions and 1 deletions

View File

@@ -3370,7 +3370,17 @@ void EditorInspector::set_keying(bool p_active) {
return;
}
keying = p_active;
update_tree();
_keying_changed();
}
void EditorInspector::_keying_changed() {
for (const KeyValue<StringName, List<EditorProperty *>> &F : editor_property_map) {
for (EditorProperty *E : F.value) {
if (E) {
E->set_keying(keying);
}
}
}
}
void EditorInspector::set_read_only(bool p_read_only) {