2.5/Sculpt:
[blender.git] / source / blender / editors / transform / transform_orientations.c
index 605eb6996a5420308c489b5ff25c14e9aab2312a..46853fa62c33460f279ae8a72b008a4664731ecc 100644 (file)
@@ -894,7 +894,10 @@ int getTransformOrientation(const bContext *C, float normal[3], float plane[3],
                        result = ORIENTATION_EDGE;
                }
        }
-       else if(G.f & (G_VERTEXPAINT + G_TEXTUREPAINT + G_WEIGHTPAINT + G_SCULPTMODE))
+       else if(ob && (ob->mode & OB_MODE_SCULPT))
+       {
+       }
+       else if(G.f & (G_VERTEXPAINT + G_TEXTUREPAINT + G_WEIGHTPAINT))
        {
        }
        else if(G.f & G_PARTICLEEDIT)