Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-11-05 05:42:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-11-05 05:42:33 +0300
commitc7ed7fcbe1b09fc06a0b27588ffb298e09f2b162 (patch)
treec9b13a91012470b2a583399f494548b573f9156a /source/blender/makesrna/intern/rna_sculpt_paint.c
parentda402c937ea3e86159ab22c3efd4f235c5533c08 (diff)
fix for missing NULL check with brush poll, reported by Mike S.
Diffstat (limited to 'source/blender/makesrna/intern/rna_sculpt_paint.c')
-rw-r--r--source/blender/makesrna/intern/rna_sculpt_paint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.c b/source/blender/makesrna/intern/rna_sculpt_paint.c
index 0fe3972104e..8f83e0b39a4 100644
--- a/source/blender/makesrna/intern/rna_sculpt_paint.c
+++ b/source/blender/makesrna/intern/rna_sculpt_paint.c
@@ -167,7 +167,7 @@ static int rna_Brush_mode_poll(PointerRNA *ptr, PointerRNA value)
* 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 {