[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52380] trunk/blender/source/blender/ modifiers/intern/MOD_triangulate.c: Fix #33237, crash creeped in due to the fact that bmesh-operator-using modifiers now need to allocate flags .

Antony Riakiotakis kalast at gmail.com
Tue Nov 20 00:33:03 CET 2012


Revision: 52380
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52380
Author:   psy-fi
Date:     2012-11-19 23:33:02 +0000 (Mon, 19 Nov 2012)
Log Message:
-----------
Fix #33237, crash creeped in due to the fact that bmesh-operator-using modifiers now need to allocate flags. Added initialization

Modified Paths:
--------------
    trunk/blender/source/blender/modifiers/intern/MOD_triangulate.c

Modified: trunk/blender/source/blender/modifiers/intern/MOD_triangulate.c
===================================================================
--- trunk/blender/source/blender/modifiers/intern/MOD_triangulate.c	2012-11-19 20:40:08 UTC (rev 52379)
+++ trunk/blender/source/blender/modifiers/intern/MOD_triangulate.c	2012-11-19 23:33:02 UTC (rev 52380)
@@ -54,7 +54,7 @@
 	BMesh *bm;
 
 	bm = DM_to_bmesh(dm);
-
+	BM_mesh_elem_toolflags_ensure(bm);
 	BMO_push(bm, NULL);
 	BMO_op_callf(bm, BMO_FLAG_DEFAULTS,
 				  "triangulate faces=%af use_beauty=%b", use_beauty);




More information about the Bf-blender-cvs mailing list