Browse Source

Merge pull request #97489 from TokageItLab/deferred-skin-registration

Move skin registration process into deferred on ready
Rémi Verschelde 10 months ago
parent
commit
ab1f55e738
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scene/3d/mesh_instance_3d.cpp

+ 2 - 2
scene/3d/mesh_instance_3d.cpp

@@ -332,8 +332,8 @@ void MeshInstance3D::create_multiple_convex_collisions(const Ref<MeshConvexDecom
 
 void MeshInstance3D::_notification(int p_what) {
 	switch (p_what) {
-		case NOTIFICATION_ENTER_TREE: {
-			_resolve_skeleton_path();
+		case NOTIFICATION_READY: {
+			callable_mp(this, &MeshInstance3D::_resolve_skeleton_path).call_deferred();
 		} break;
 		case NOTIFICATION_TRANSLATION_CHANGED: {
 			if (mesh.is_valid()) {