Merge pull request #18693 from AndreaCatania/patch-1
Fixed editor crash during editor closing
This commit is contained in:
commit
e854a71fac
|
@ -154,10 +154,7 @@ SkeletonEditor::SkeletonEditor() {
|
||||||
options->hide();
|
options->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
SkeletonEditor::~SkeletonEditor() {
|
SkeletonEditor::~SkeletonEditor() {}
|
||||||
SpatialEditor::get_singleton()->remove_child(options);
|
|
||||||
memdelete(options);
|
|
||||||
}
|
|
||||||
|
|
||||||
void SkeletonEditorPlugin::edit(Object *p_object) {
|
void SkeletonEditorPlugin::edit(Object *p_object) {
|
||||||
skeleton_editor->edit(Object::cast_to<Skeleton>(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);
|
editor->get_viewport()->add_child(skeleton_editor);
|
||||||
}
|
}
|
||||||
|
|
||||||
SkeletonEditorPlugin::~SkeletonEditorPlugin() {
|
SkeletonEditorPlugin::~SkeletonEditorPlugin() {}
|
||||||
editor->get_viewport()->remove_child(skeleton_editor);
|
|
||||||
memdelete(skeleton_editor);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue