Remove NULL check from gimbal_axis
This commit is contained in:
@@ -201,7 +201,6 @@ static int test_rotmode_euler(short rotmode)
|
||||
|
||||
bool gimbal_axis(Object *ob, float gmat[3][3])
|
||||
{
|
||||
if (ob) {
|
||||
if (ob->mode & OB_MODE_POSE) {
|
||||
bPoseChannel *pchan = BKE_pose_channel_active(ob);
|
||||
|
||||
@@ -260,7 +259,6 @@ bool gimbal_axis(Object *ob, float gmat[3][3])
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -451,7 +451,7 @@ void initTransformOrientation(bContext *C, TransInfo *t)
|
||||
|
||||
case V3D_MANIP_GIMBAL:
|
||||
unit_m3(t->spacemtx);
|
||||
if (gimbal_axis(ob, t->spacemtx)) {
|
||||
if (ob && gimbal_axis(ob, t->spacemtx)) {
|
||||
BLI_strncpy(t->spacename, IFACE_("gimbal"), sizeof(t->spacename));
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user