Commit: 21523b5c8682632b26f80062c6e52ff54cd887d3
Author: Campbell Barton
Date:   Fri Dec 14 16:59:26 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB21523b5c8682632b26f80062c6e52ff54cd887d3

Transform: remove incorrect 3D view check

===================================================================

M       source/blender/editors/transform/transform_orientations.c

===================================================================

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;
        }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to