Browse Source

Fix crash on dictionary initialization after return to default in C#.

ajreckof 1 year ago
parent
commit
f764c5336a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/editor_properties_array_dict.cpp

+ 1 - 0
editor/editor_properties_array_dict.cpp

@@ -960,6 +960,7 @@ void EditorPropertyDictionary::update_property() {
 			memdelete(container);
 			button_add_item = nullptr;
 			container = nullptr;
+			add_panel = nullptr;
 			slots.clear();
 		}
 		return;