Revision: 37236
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37236
Author:   jwilkins
Date:     2011-06-06 03:53:38 +0000 (Mon, 06 Jun 2011)
Log Message:
-----------
null pointer checks

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

Modified: 
branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_stroke.c
===================================================================
--- branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_stroke.c  
2011-06-06 03:53:22 UTC (rev 37235)
+++ branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_stroke.c  
2011-06-06 03:53:38 UTC (rev 37236)
@@ -1258,7 +1258,7 @@
 
        /* TODO: as sculpt and other paint modes are unified, this
           special mode of drawing will go away */
-       if (vc.obact->paint->sculpt) {
+       if (vc.obact->paint && vc.obact->paint->sculpt) {
                Sculpt *sd = CTX_data_tool_settings(C)->sculpt;
 
                int pixel_radius, viewport[4];
@@ -1555,7 +1555,7 @@
 
        /* TODO: as sculpt and other paint modes are unified, this
           separation will go away */
-       if(stroke->vc.obact->paint->sculpt) {
+       if(stroke->vc.obact->paint && stroke->vc.obact->paint->sculpt) {
                float delta[3];
 
                brush_jitter_pos(brush, mouse_in, mouse);

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

Reply via email to