Correct own error in recent transform orientation changes
[blender.git] / 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;