|
@@ -1236,6 +1236,7 @@ EditorInspectorSection::EditorInspectorSection() {
|
|
|
}
|
|
|
|
|
|
EditorInspectorSection::~EditorInspectorSection() {
|
|
|
+
|
|
|
if (!vbox_added) {
|
|
|
memdelete(vbox);
|
|
|
}
|
|
@@ -2140,6 +2141,9 @@ void EditorInspector::_notification(int p_what) {
|
|
|
get_tree()->connect("node_removed", this, "_node_removed");
|
|
|
}
|
|
|
}
|
|
|
+ if (p_what == NOTIFICATION_PREDELETE) {
|
|
|
+ edit(NULL); //just in case
|
|
|
+ }
|
|
|
if (p_what == NOTIFICATION_EXIT_TREE) {
|
|
|
|
|
|
if (!sub_inspector) {
|