diff options
Diffstat (limited to 'editor/plugins/control_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/control_editor_plugin.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/editor/plugins/control_editor_plugin.cpp b/editor/plugins/control_editor_plugin.cpp index 5b0831eeb8..939527b56f 100644 --- a/editor/plugins/control_editor_plugin.cpp +++ b/editor/plugins/control_editor_plugin.cpp @@ -413,7 +413,15 @@ bool EditorInspectorPluginControl::can_handle(Object *p_object) { return Object::cast_to<Control>(p_object) != nullptr; } +void EditorInspectorPluginControl::parse_category(Object *p_object, const String &p_category) { + inside_control_category = p_category == "Control"; +} + void EditorInspectorPluginControl::parse_group(Object *p_object, const String &p_group) { + if (!inside_control_category) { + return; + } + Control *control = Object::cast_to<Control>(p_object); if (!control || p_group != "Layout") { return; |