diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-01-31 00:44:08 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-01-31 00:44:08 +0400 |
commit | 101a287040cf7e93ea27f31dca9d408e0d4a3c62 (patch) | |
tree | dbc80194441b6e060274042a0561723655176c29 /source | |
parent | ccd1d86638a22a52ed4797d295cb52792ece520d (diff) |
Fix #30031: Build modifier crashes when applied to bezier object
Just missed check for modifier type.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/object/object_modifier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_modifier.c b/source/blender/editors/object/object_modifier.c index 2797c08e72b..ed5899d81a8 100644 --- a/source/blender/editors/object/object_modifier.c +++ b/source/blender/editors/object/object_modifier.c @@ -536,7 +536,7 @@ static int modifier_apply_obdata(ReportList *reports, Scene *scene, Object *ob, 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; } |