Skip to content

Commit

Permalink
Fix initial skin update timing in Skeleton3D
Browse files Browse the repository at this point in the history
  • Loading branch information
TokageItLab committed Oct 11, 2024
1 parent db66bd3 commit b0473fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scene/3d/mesh_instance_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ void MeshInstance3D::create_multiple_convex_collisions(const Ref<MeshConvexDecom

void MeshInstance3D::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_READY: {
case NOTIFICATION_ENTER_TREE: {
callable_mp(this, &MeshInstance3D::_resolve_skeleton_path).call_deferred();
} break;
case NOTIFICATION_TRANSLATION_CHANGED: {
Expand Down
2 changes: 2 additions & 0 deletions scene/3d/skeleton_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ void Skeleton3D::_notification(int p_what) {
#ifndef DISABLE_DEPRECATED
setup_simulator();
#endif // _DISABLE_DEPRECATED
update_flags = UPDATE_FLAG_POSE;
_notification(NOTIFICATION_UPDATE_SKELETON);
} break;
case NOTIFICATION_UPDATE_SKELETON: {
// Update bone transforms to apply unprocessed poses.
Expand Down

0 comments on commit b0473fa

Please sign in to comment.