You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Removed node from physical_bone_plugin
This commit is contained in:
@@ -70,12 +70,14 @@ PhysicalBoneEditor::PhysicalBoneEditor(EditorNode *p_editor) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
PhysicalBoneEditor::~PhysicalBoneEditor() {
|
PhysicalBoneEditor::~PhysicalBoneEditor() {
|
||||||
// TODO the spatial_editor_hb should be removed from SpatialEditor, but in this moment it's not possible
|
|
||||||
for (int i = spatial_editor_hb->get_child_count() - 1; 0 <= i; --i) {
|
for (int i = spatial_editor_hb->get_child_count() - 1; 0 <= i; --i) {
|
||||||
Node *n = spatial_editor_hb->get_child(i);
|
Node *n = spatial_editor_hb->get_child(i);
|
||||||
spatial_editor_hb->remove_child(n);
|
spatial_editor_hb->remove_child(n);
|
||||||
memdelete(n);
|
memdelete(n);
|
||||||
}
|
}
|
||||||
|
if (spatial_editor_hb->get_parent()) {
|
||||||
|
spatial_editor_hb->get_parent()->remove_child(spatial_editor_hb);
|
||||||
|
}
|
||||||
memdelete(spatial_editor_hb);
|
memdelete(spatial_editor_hb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user