2.5/Sculpt:
[blender.git] / source / blender / editors / space_view3d / view3d_toolbar.c
index 67d8bc3e5ee5dec48a89539310fe2f4fd6d8845a..a6317100643419b53ed34ebe77004118d31a5df1 100644 (file)
@@ -190,7 +190,7 @@ char *view3d_context_string(const bContext *C)
                Object *ob = CTX_data_active_object(C);
                
                if(ob && (ob->flag & OB_POSEMODE)) return "pose_mode";
-               else if (G.f & G_SCULPTMODE)  return "sculpt_mode";
+               else if (ob && ob->mode & OB_MODE_SCULPT)  return "sculpt_mode";
                else if (G.f & G_WEIGHTPAINT) return "weight_paint";
                else if (G.f & G_VERTEXPAINT) return "vertex_paint";
                else if (G.f & G_TEXTUREPAINT) return "texture_paint";