Skip to content

Commit 3120d17

Browse files
committed
Merge pull request godotengine#104998 from TokageItLab/unregister-spring-from-physics
Move `SpringBoneSimulator3D` registration to the outside of Physics3D's environment
2 parents 8e744e6 + b321a11 commit 3120d17

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scene/register_scene_types.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -645,16 +645,15 @@ void register_scene_types() {
645645
GDREGISTER_CLASS(RootMotionView);
646646
GDREGISTER_VIRTUAL_CLASS(SkeletonModifier3D);
647647
GDREGISTER_CLASS(RetargetModifier3D);
648-
649-
OS::get_singleton()->yield(); // may take time to init
650-
651-
#ifndef PHYSICS_3D_DISABLED
652648
GDREGISTER_CLASS(SpringBoneSimulator3D);
653649
GDREGISTER_VIRTUAL_CLASS(SpringBoneCollision3D);
654650
GDREGISTER_CLASS(SpringBoneCollisionSphere3D);
655651
GDREGISTER_CLASS(SpringBoneCollisionCapsule3D);
656652
GDREGISTER_CLASS(SpringBoneCollisionPlane3D);
657653

654+
OS::get_singleton()->yield(); // may take time to init
655+
656+
#ifndef PHYSICS_3D_DISABLED
658657
GDREGISTER_ABSTRACT_CLASS(CollisionObject3D);
659658
GDREGISTER_ABSTRACT_CLASS(PhysicsBody3D);
660659
GDREGISTER_CLASS(StaticBody3D);

0 commit comments

Comments
 (0)