[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32877] trunk/blender/source/blender/ makesrna/intern/rna_sculpt_paint.c: fix for missing NULL check with brush poll, reported by Mike S.
Campbell Barton
ideasman42 at gmail.com
Fri Nov 5 03:42:35 CET 2010
Revision: 32877
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32877
Author: campbellbarton
Date: 2010-11-05 03:42:33 +0100 (Fri, 05 Nov 2010)
Log Message:
-----------
fix for missing NULL check with brush poll, reported by Mike S.
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_sculpt_paint.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_sculpt_paint.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_sculpt_paint.c 2010-11-05 01:47:55 UTC (rev 32876)
+++ trunk/blender/source/blender/makesrna/intern/rna_sculpt_paint.c 2010-11-05 02:42:33 UTC (rev 32877)
@@ -167,7 +167,7 @@
* but for 2D view image painting we always want texture brushes
* this is not quite correct since you could be in object weightpaint
* mode at the same time as the 2D image view, but for now its *good enough* */
- if(ob->mode & OB_MODE_ALL_PAINT) {
+ if(ob && ob->mode & OB_MODE_ALL_PAINT) {
return ob->mode & brush->ob_mode;
}
else {
More information about the Bf-blender-cvs
mailing list