Revision: 21675
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21675
Author:   nicholasbishop
Date:     2009-07-18 15:29:47 +0200 (Sat, 18 Jul 2009)

Log Message:
-----------
2.5/Sculpt:

* Fixed the NKEY panel not updating when switching to sculpt mode
* Removed some old XXX'd code for testing textures, can replace that now with 
proper brush-texture UI

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/editors/sculpt_paint/sculpt.c

Modified: 
branches/blender2.5/blender/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/sculpt_paint/sculpt.c    
2009-07-18 11:39:50 UTC (rev 21674)
+++ branches/blender2.5/blender/source/blender/editors/sculpt_paint/sculpt.c    
2009-07-18 13:29:47 UTC (rev 21675)
@@ -1627,8 +1627,6 @@
                sculptsession_free(ts->sculpt);
        }
        else {
-               MTex *mtex; // XXX: temporary
-
                /* Enter sculptmode */
 
                G.f |= G_SCULPTMODE;
@@ -1647,17 +1645,7 @@
                /* If there's no brush, create one */
                brush_check_exists(&ts->sculpt->brush);
 
-               /* XXX: testing: set the brush texture to the first available 
one */
-               if(G.main->tex.first) {
-                       Tex *tex = G.main->tex.first;
-                       if(tex->type) {
-                               mtex = MEM_callocN(sizeof(MTex), "test mtex");
-                               ts->sculpt->brush->texact = 0;
-                               ts->sculpt->brush->mtex[0] = mtex;
-                               mtex->tex = tex;
-                               mtex->size[0] = mtex->size[1] = mtex->size[2] = 
50;
-                       }
-               }
+               WM_event_add_notifier(C, NC_SCENE|ND_MODE, CTX_data_scene(C));
        }
 
        return OPERATOR_FINISHED;


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to