Fix owner warning when importing FBX.

This commit is contained in:
Saracen 2024-08-26 14:51:49 +01:00
parent 28a72fa434
commit 7050e581ff
1 changed files with 1 additions and 0 deletions

View File

@ -2017,6 +2017,7 @@ void FBXDocument::_process_mesh_instances(Ref<FBXState> p_state, Node *p_scene_r
ERR_CONTINUE_MSG(skeleton == nullptr, vformat("Unable to find Skeleton for node %d skin %d", node_i, skin_i));
mi->get_parent()->remove_child(mi);
mi->set_owner(nullptr);
skeleton->add_child(mi, true);
mi->set_owner(skeleton->get_owner());