Revision: 39513
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39513
Author:   psy-fi
Date:     2011-08-17 22:44:03 +0000 (Wed, 17 Aug 2011)
Log Message:
-----------
uv paint brushes
=================
-crash fix: entering edit mode without UV brush.

Modified Paths:
--------------
    branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_image.c

Modified: 
branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_image.c
===================================================================
--- branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_image.c   
2011-08-17 22:37:35 UTC (rev 39512)
+++ branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_image.c   
2011-08-17 22:44:03 UTC (rev 39513)
@@ -5121,7 +5121,9 @@
                settings->uvpaint->paint.flags |= PAINT_SHOW_BRUSH;
        }
        else {
-               settings->uvpaint->paint.flags &= ~PAINT_SHOW_BRUSH;
+               if(settings->uvpaint){
+                       settings->uvpaint->paint.flags &= ~PAINT_SHOW_BRUSH;
+               }
        }
 }
 /************************ grab clone operator ************************/

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

Reply via email to