You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Update property keying state without a full Inspector rebuild
This commit is contained in:
@@ -3370,7 +3370,17 @@ void EditorInspector::set_keying(bool p_active) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
keying = p_active;
|
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) {
|
void EditorInspector::set_read_only(bool p_read_only) {
|
||||||
|
|||||||
@@ -521,6 +521,8 @@ class EditorInspector : public ScrollContainer {
|
|||||||
void _changed_callback();
|
void _changed_callback();
|
||||||
void _edit_request_change(Object *p_object, const String &p_prop);
|
void _edit_request_change(Object *p_object, const String &p_prop);
|
||||||
|
|
||||||
|
void _keying_changed();
|
||||||
|
|
||||||
void _filter_changed(const String &p_text);
|
void _filter_changed(const String &p_text);
|
||||||
void _parse_added_editors(VBoxContainer *current_vbox, EditorInspectorSection *p_section, Ref<EditorInspectorPlugin> ped);
|
void _parse_added_editors(VBoxContainer *current_vbox, EditorInspectorSection *p_section, Ref<EditorInspectorPlugin> ped);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user