Fix edit resource on inspector when inside array or dictionary

refactor

Fix dictionary
This commit is contained in:
Alexej "Xela" Tušl
2025-05-03 00:00:47 +02:00
parent 60b7b8b16e
commit c9b3896911
2 changed files with 17 additions and 0 deletions

View File

@@ -139,6 +139,8 @@ class EditorPropertyArray : public EditorProperty {
void _reorder_button_up();
void _create_new_property_slot();
void _resource_selected(const String &p_path, Ref<Resource> p_resource);
Node *get_base_node();
protected:
@@ -243,6 +245,7 @@ class EditorPropertyDictionary : public EditorProperty {
void _page_changed(int p_page);
void _edit_pressed();
void _property_changed(const String &p_property, Variant p_value, const String &p_name = "", bool p_changing = false);
void _resource_selected(const String &p_path, Ref<Resource> p_resource);
void _change_type(Object *p_button, int p_slot_index);
void _change_type_menu(int p_index);