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])
|
bool gimbal_axis(Object *ob, float gmat[3][3])
|
||||||
{
|
{
|
||||||
if (ob) {
|
|
||||||
if (ob->mode & OB_MODE_POSE) {
|
if (ob->mode & OB_MODE_POSE) {
|
||||||
bPoseChannel *pchan = BKE_pose_channel_active(ob);
|
bPoseChannel *pchan = BKE_pose_channel_active(ob);
|
||||||
|
|
||||||
@@ -260,7 +259,6 @@ bool gimbal_axis(Object *ob, float gmat[3][3])
|
|||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -451,7 +451,7 @@ void initTransformOrientation(bContext *C, TransInfo *t)
|
|||||||
|
|
||||||
case V3D_MANIP_GIMBAL:
|
case V3D_MANIP_GIMBAL:
|
||||||
unit_m3(t->spacemtx);
|
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));
|
BLI_strncpy(t->spacename, IFACE_("gimbal"), sizeof(t->spacename));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user