2.5/Sculpt:
[blender.git] / source / blender / editors / space_node / node_edit.c
index 467637d3f60d7d63dc081daf9cc9ba2b83677f1e..721f8a502567c0fdd7d643ab404af3da941dc3f7 100644 (file)
@@ -624,7 +624,7 @@ void snode_set_context(SpaceNode *snode, Scene *scene)
                else {
                        MTex *mtex= NULL;
                        
-                       if(G.f & G_SCULPTMODE) {
+                       if(ob && ob->mode & OB_MODE_SCULPT) {
                                Sculpt *sd= scene->toolsettings->sculpt;
                                if(sd && sd->brush)
                                        if(sd->brush->texact != -1)