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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user