[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53615] trunk/blender/source/blender/ editors/sculpt_paint/sculpt.c: Fix for r53610, check that ob-> sculpt is valid before using it

Nicholas Bishop nicholasbishop at gmail.com
Sun Jan 6 21:06:55 CET 2013


Revision: 53615
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53615
Author:   nicholasbishop
Date:     2013-01-06 20:06:53 +0000 (Sun, 06 Jan 2013)
Log Message:
-----------
Fix for r53610, check that ob->sculpt is valid before using it

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53610

Modified Paths:
--------------
    trunk/blender/source/blender/editors/sculpt_paint/sculpt.c

Modified: trunk/blender/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2013-01-06 19:26:30 UTC (rev 53614)
+++ trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2013-01-06 20:06:53 UTC (rev 53615)
@@ -137,7 +137,7 @@
 	Mesh *me = (Mesh *)ob->data;
 	ModifierData *md;
 
-	if (ob->sculpt->bm) {
+	if (ob->sculpt && ob->sculpt->bm) {
 		/* can't combine multires and dynamic topology */
 		return NULL;
 	}




More information about the Bf-blender-cvs mailing list