Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_array.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| ArrayModifierData *amd = (ArrayModifierData *)md; | ArrayModifierData *amd = (ArrayModifierData *)md; | ||||
| /* The object type check is only needed here in case we have a placeholder | /* The object type check is only needed here in case we have a placeholder | ||||
| * object assigned (because the library containing the curve/mesh is missing). | * object assigned (because the library containing the curve/mesh is missing). | ||||
| * | * | ||||
| * In other cases it should be impossible to have a type mismatch. | * In other cases it should be impossible to have a type mismatch. | ||||
| */ | */ | ||||
| if (amd->curve_ob && amd->curve_ob->type != OB_CURVE) { | if (amd->curve_ob && amd->curve_ob->type != OB_CURVES_LEGACY) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| if (amd->start_cap && amd->start_cap->type != OB_MESH) { | if (amd->start_cap && amd->start_cap->type != OB_MESH) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| if (amd->end_cap && amd->end_cap->type != OB_MESH) { | if (amd->end_cap && amd->end_cap->type != OB_MESH) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||