diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-14 08:59:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-14 08:59:26 +0300 |
commit | 21523b5c8682632b26f80062c6e52ff54cd887d3 (patch) | |
tree | 8fc6971d9fecd1a7da12e6f9bb6d81aba8474538 /source/blender | |
parent | f4c70a35a292eb76417c7683aa651e5c07710822 (diff) |
Transform: remove incorrect 3D view check
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/transform/transform_orientations.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c index 5be23594afd..a21882fc206 100644 --- a/source/blender/editors/transform/transform_orientations.c +++ b/source/blender/editors/transform/transform_orientations.c @@ -68,11 +68,10 @@ void BIF_clearTransformOrientation(bContext *C) { Scene *scene = CTX_data_scene(C); ListBase *transform_orientations = &scene->transform_spaces; - View3D *v3d = CTX_wm_view3d(C); BLI_freelistN(transform_orientations); - if (v3d && scene->orientation_type == V3D_MANIP_CUSTOM) { + if (scene->orientation_type == V3D_MANIP_CUSTOM) { scene->orientation_type = V3D_MANIP_GLOBAL; /* fallback to global */ scene->orientation_index_custom = -1; } |