Remove object type check in Cast Modifier deformation, was wrong now that Curves support modifiers.

Also fixes [#21742] Crashes when adding a Cast mod after a Screw mod on a Curve Object
This commit is contained in:
2010-03-25 10:43:55 +00:00
parent 2ae418e0a8
commit 57b2ea62ab

View File

@@ -4816,11 +4816,7 @@ static void castModifier_deformVerts(
DerivedMesh *dm = NULL;
CastModifierData *cmd = (CastModifierData *)md;
if (ob->type == OB_MESH) {
/* DerivedMesh is used only in case object is MESH */
/* so we could optimize modifier applying by skipping DM creation */
dm = get_dm(md->scene, ob, NULL, derivedData, NULL, 0);
}
dm = get_dm(md->scene, ob, NULL, derivedData, NULL, 0);
if (cmd->type == MOD_CAST_TYPE_CUBOID) {
castModifier_cuboid_do(cmd, ob, dm, vertexCos, numVerts);