[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43782] trunk/blender/source/blender/ editors/object/object_modifier.c: Fix #30031: Build modifier crashes when applied to bezier object

Sergey Sharybin sergey.vfx at gmail.com
Mon Jan 30 21:44:10 CET 2012


Revision: 43782
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43782
Author:   nazgul
Date:     2012-01-30 20:44:08 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
Fix #30031: Build modifier crashes when applied to bezier object

Just missed check for modifier type.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/object/object_modifier.c

Modified: trunk/blender/source/blender/editors/object/object_modifier.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_modifier.c	2012-01-30 20:41:36 UTC (rev 43781)
+++ trunk/blender/source/blender/editors/object/object_modifier.c	2012-01-30 20:44:08 UTC (rev 43782)
@@ -536,7 +536,7 @@
 		int numVerts;
 		float (*vertexCos)[3];
 
-		if (mti->type==eModifierTypeType_Constructive) {
+		if (ELEM(mti->type, eModifierTypeType_Constructive, eModifierTypeType_Nonconstructive)) {
 			BKE_report(reports, RPT_ERROR, "Cannot apply constructive modifiers on curve");
 			return 0;
 		}



More information about the Bf-blender-cvs mailing list