You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
Merge pull request #32238 from Paulb23/reset_array_dict_crash
Fix crash when reverting an exported array / dict to NULL
This commit is contained in:
@@ -264,7 +264,9 @@ void EditorPropertyArray::update_property() {
|
||||
edit->set_text(String("(Nil) ") + arrtype);
|
||||
edit->set_pressed(false);
|
||||
if (vbox) {
|
||||
set_bottom_editor(NULL);
|
||||
memdelete(vbox);
|
||||
vbox = NULL;
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -631,7 +633,9 @@ void EditorPropertyDictionary::update_property() {
|
||||
edit->set_text("Dictionary (Nil)"); //This provides symmetry with the array property.
|
||||
edit->set_pressed(false);
|
||||
if (vbox) {
|
||||
set_bottom_editor(NULL);
|
||||
memdelete(vbox);
|
||||
vbox = NULL;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user