[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39371] branches/soc-2011-onion/source/ blender/editors/sculpt_paint/paint_controls.c: crash fix on startup
Antony Riakiotakis
kalast at gmail.com
Sat Aug 13 23:10:29 CEST 2011
Revision: 39371
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39371
Author: psy-fi
Date: 2011-08-13 21:10:29 +0000 (Sat, 13 Aug 2011)
Log Message:
-----------
crash fix on startup
Modified Paths:
--------------
branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_controls.c
Modified: branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_controls.c
===================================================================
--- branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_controls.c 2011-08-13 21:06:43 UTC (rev 39370)
+++ branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_controls.c 2011-08-13 21:10:29 UTC (rev 39371)
@@ -415,7 +415,8 @@
if (!sd) /* XXX: TODO: remove sculpt dependency */
return;
- if (!(ob->paint->painting) &&
+ if (ob->paint &&
+ !(ob->paint->painting) &&
brush &&
brush->mtex.brush_map_mode == MTEX_MAP_MODE_TILED &&
brush->flag & BRUSH_TEXTURE_OVERLAY)
More information about the Bf-blender-cvs
mailing list