From 7050e581ffde05a8bed7cf8b78fbd53ac3d644c7 Mon Sep 17 00:00:00 2001 From: Saracen Date: Mon, 26 Aug 2024 14:51:49 +0100 Subject: [PATCH] Fix owner warning when importing FBX. --- modules/fbx/fbx_document.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/fbx/fbx_document.cpp b/modules/fbx/fbx_document.cpp index 4d3f7554c09..4e1a00cad6f 100644 --- a/modules/fbx/fbx_document.cpp +++ b/modules/fbx/fbx_document.cpp @@ -2017,6 +2017,7 @@ void FBXDocument::_process_mesh_instances(Ref 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());