[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54971] trunk/blender/source/blender/ editors/sculpt_paint/sculpt.c: fix [#34431] Crash with 2. 66 when dyntopo enabled and using view plane mode

Campbell Barton ideasman42 at gmail.com
Sat Mar 2 17:13:02 CET 2013


Revision: 54971
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54971
Author:   campbellbarton
Date:     2013-03-02 16:13:01 +0000 (Sat, 02 Mar 2013)
Log Message:
-----------
fix [#34431] Crash with 2.66 when dyntopo enabled and using view plane mode

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-03-02 15:58:13 UTC (rev 54970)
+++ trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2013-03-02 16:13:01 UTC (rev 54971)
@@ -2281,7 +2281,7 @@
 		unode = sculpt_undo_push_node(ob, nodes[n], SCULPT_UNDO_COORDS);
 		sculpt_brush_test_init(ss, &test);
 
-		if (ss->cache->original) {
+		if (ss->cache->original && unode->co) {
 			BKE_pbvh_vertex_iter_begin(ss->pbvh, nodes[n], vd, PBVH_ITER_UNIQUE)
 			{
 				if (sculpt_brush_test_fast(&test, unode->co[vd.i])) {




More information about the Bf-blender-cvs mailing list