[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56902] trunk/blender/source/blender/ editors/sculpt_paint/paint_cursor.c: Fix crash due to shared paint cursor function.

Antony Riakiotakis kalast at gmail.com
Sat May 18 17:51:41 CEST 2013


Revision: 56902
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56902
Author:   psy-fi
Date:     2013-05-18 15:51:40 +0000 (Sat, 18 May 2013)
Log Message:
-----------
Fix crash due to shared paint cursor function. It is necessary to check
if we really are in sculpt mode context since the active object may be
in sculpt mode while cursor is in the 2d paint editor.

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

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_cursor.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_cursor.c	2013-05-18 15:24:25 UTC (rev 56901)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_cursor.c	2013-05-18 15:51:40 UTC (rev 56902)
@@ -809,7 +809,7 @@
 
 	/* TODO: as sculpt and other paint modes are unified, this
 	 * special mode of drawing will go away */
-	if (vc.obact && vc.obact->sculpt) {
+	if ((mode == PAINT_SCULPT) && vc.obact->sculpt) {
 		float location[3];
 		int pixel_radius, hit;
 




More information about the Bf-blender-cvs mailing list