Correct own error in recent transform orientation changes
authorCampbell Barton <ideasman42@gmail.com>
Tue, 11 Sep 2018 05:00:50 +0000 (15:00 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 11 Sep 2018 05:00:50 +0000 (15:00 +1000)
source/blender/editors/transform/transform_orientations.c

index 1c5a6eabd6f2386c1aa30cddfa78abb9d2df0050..4122cf33bdbea6445d1f963ac2098ca6f7b1896d 100644 (file)
@@ -796,7 +796,7 @@ int getTransformOrientation_ex(const bContext *C, float normal[3], float plane[3
                                                }
                                        }
 
-                                       result = ORIENTATION_EDGE;
+                                       result = is_zero_v3(plane) ? ORIENTATION_VERT : ORIENTATION_EDGE;
                                }
                                else if (em->bm->totvertsel > 3) {
                                        BMIter iter;