Explorar el Código

Merge pull request #31223 from creikey/fix-csg-crash

Button object used after pressed is called
Rémi Verschelde hace 6 años
padre
commit
76d1183178
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      editor/editor_properties_array_dict.cpp

+ 2 - 1
editor/editor_properties_array_dict.cpp

@@ -312,7 +312,8 @@ void EditorPropertyArray::update_property() {
 		} else {
 		} else {
 			//bye bye children of the box
 			//bye bye children of the box
 			while (vbox->get_child_count() > 2) {
 			while (vbox->get_child_count() > 2) {
-				memdelete(vbox->get_child(2));
+				vbox->get_child(2)->queue_delete(); // button still needed after pressed is called
+				vbox->remove_child(vbox->get_child(2));
 			}
 			}
 		}
 		}