mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 12:43:43 +00:00
Fix get_bone_pose_global_no_override()
(cherry picked from commit 565803ce3d
)
This commit is contained in:
parent
4cf3aff7cc
commit
9307d851a9
@ -925,18 +925,18 @@ void Skeleton3D::force_update_bone_children_transforms(int p_bone_idx) {
|
||||
|
||||
if (b.parent >= 0) {
|
||||
b.pose_global = bonesptr[b.parent].pose_global * pose;
|
||||
b.pose_global_no_override = b.pose_global;
|
||||
b.pose_global_no_override = bonesptr[b.parent].pose_global_no_override * pose;
|
||||
} else {
|
||||
b.pose_global = pose;
|
||||
b.pose_global_no_override = b.pose_global;
|
||||
b.pose_global_no_override = pose;
|
||||
}
|
||||
} else {
|
||||
if (b.parent >= 0) {
|
||||
b.pose_global = bonesptr[b.parent].pose_global * b.rest;
|
||||
b.pose_global_no_override = b.pose_global;
|
||||
b.pose_global_no_override = bonesptr[b.parent].pose_global_no_override * b.rest;
|
||||
} else {
|
||||
b.pose_global = b.rest;
|
||||
b.pose_global_no_override = b.pose_global;
|
||||
b.pose_global_no_override = b.rest;
|
||||
}
|
||||
}
|
||||
if (rest_dirty) {
|
||||
|
Loading…
Reference in New Issue
Block a user