Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-12-14 08:59:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-14 08:59:26 +0300
commit21523b5c8682632b26f80062c6e52ff54cd887d3 (patch)
tree8fc6971d9fecd1a7da12e6f9bb6d81aba8474538 /source/blender
parentf4c70a35a292eb76417c7683aa651e5c07710822 (diff)
Transform: remove incorrect 3D view check
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/transform/transform_orientations.c3
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;
}