summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Catania <info@andreacatania.com>2018-05-08 00:59:22 +0200
committerGitHub <noreply@github.com>2018-05-08 00:59:22 +0200
commit6c4916ddf56e999e4dd3d85a2890cfa610d20ba6 (patch)
tree1b86f7880c871faee83a6c9d55f1177b25a2a1cc
parent633bbdb2318a9776b651264ea6146bd805a16fb8 (diff)
Removed pointer deletion during editor closing
-rw-r--r--editor/plugins/skeleton_editor_plugin.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/editor/plugins/skeleton_editor_plugin.cpp b/editor/plugins/skeleton_editor_plugin.cpp
index c41e3b546f..40a696119e 100644
--- a/editor/plugins/skeleton_editor_plugin.cpp
+++ b/editor/plugins/skeleton_editor_plugin.cpp
@@ -154,10 +154,7 @@ SkeletonEditor::SkeletonEditor() {
options->hide();
}
-SkeletonEditor::~SkeletonEditor() {
- SpatialEditor::get_singleton()->remove_child(options);
- memdelete(options);
-}
+SkeletonEditor::~SkeletonEditor() {}
void SkeletonEditorPlugin::edit(Object *p_object) {
skeleton_editor->edit(Object::cast_to<Skeleton>(p_object));
@@ -183,7 +180,4 @@ SkeletonEditorPlugin::SkeletonEditorPlugin(EditorNode *p_node) {
editor->get_viewport()->add_child(skeleton_editor);
}
-SkeletonEditorPlugin::~SkeletonEditorPlugin() {
- editor->get_viewport()->remove_child(skeleton_editor);
- memdelete(skeleton_editor);
-}
+SkeletonEditorPlugin::~SkeletonEditorPlugin() {}