diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-04-06 04:32:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-04-06 04:32:45 +0300 |
commit | e63ba6d0f422bd55a5d3cbdb0d835e8839d2d6b6 (patch) | |
tree | e5ae431eda3de6b6c4e7df8407fd9fc90176a3cb /source/blender/editors/transform/transform_orientations.c | |
parent | 40cb5a067bf93a993181d4c07c8fba63a9197eee (diff) |
Remove NULL check from gimbal_axis
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r-- | source/blender/editors/transform/transform_orientations.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c index 67f1dc6e44d..e1a45cb2309 100644 --- a/source/blender/editors/transform/transform_orientations.c +++ b/source/blender/editors/transform/transform_orientations.c @@ -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; } |