Parcourir la source

BoneAttachment fix.

Saracen il y a 10 ans
Parent
commit
957baf48dc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      scene/3d/skeleton.cpp

+ 1 - 1
scene/3d/skeleton.cpp

@@ -250,7 +250,7 @@ void Skeleton::_notification(int p_what) {
 					ERR_CONTINUE(!obj);
 					Spatial *sp = obj->cast_to<Spatial>();
 					ERR_CONTINUE(!sp);
-					sp->set_transform(b.pose_global * b.rest_global_inverse);
+					sp->set_transform(b.pose_global);
 				}
 			}