Browse Source

Fix owner warning when importing FBX.

Saracen 1 year ago
parent
commit
7050e581ff
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/fbx/fbx_document.cpp

+ 1 - 0
modules/fbx/fbx_document.cpp

@@ -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());