Animation: Add in Parent space alignment option to the Transform Orientation gizmo #104724

Merged
Nate Rupsis merged 47 commits from nrupsis/blender:parent-space into main 2023-04-20 17:40:31 +02:00
1 changed files with 5 additions and 4 deletions
Showing only changes of commit 47932223f5 - Show all commits

View File

@ -524,16 +524,17 @@ short ED_transform_calc_orientation_from_type_ex(const Scene *scene,
// store off the original active bone for a moment, run this, then restore
bArmature *armature = ob->data;
armature->act_bone = space_pchan->bone;
ED_getTransformOrientationMatrix(view_layer, v3d, ob, obedit, pivot_point, r_mat);
ED_getTransformOrientationMatrix(
scene, view_layer, v3d, ob, obedit, pivot_point, r_mat);
armature->act_bone = active_pchan->bone;
break;
}
}
else {
// handle the parent check at object level
ED_getTransformOrientationMatrix(view_layer, v3d,
ob->parent ? ob->parent : ob,
obedit, pivot_point, r_mat);
ED_getTransformOrientationMatrix(
scene, view_layer, v3d, ob->parent ? ob->parent : ob, obedit, pivot_point, r_mat);
break;
}
}