diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-27 13:53:38 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-27 13:53:38 +0200 |
commit | ab1f55e738443ca97ab1f79ea65ba36a006026ce (patch) | |
tree | 08e96791a8c3beabcf72db4cab5cc67e18e99e2d | |
parent | 58ec7a95a42dd1c90a6ba9887b9031633ac12594 (diff) | |
parent | 2eb069f40b64809d144d86373c9b42d824dbc50e (diff) | |
download | redot-engine-ab1f55e738443ca97ab1f79ea65ba36a006026ce.tar.gz |
Merge pull request #97489 from TokageItLab/deferred-skin-registration
Move skin registration process into deferred on ready
-rw-r--r-- | scene/3d/mesh_instance_3d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/mesh_instance_3d.cpp b/scene/3d/mesh_instance_3d.cpp index f551cb401c..e8166802f8 100644 --- a/scene/3d/mesh_instance_3d.cpp +++ b/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()) { |