Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_curve.c
| Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| CurveModifierData *cmd = (CurveModifierData *)md; | CurveModifierData *cmd = (CurveModifierData *)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 is missing). | * object assigned (because the library containing the curve 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. | ||||
| */ | */ | ||||
| return !cmd->object || cmd->object->type != OB_CURVE; | return !cmd->object || cmd->object->type != OB_CURVES_LEGACY; | ||||
| } | } | ||||
| static void foreachIDLink(ModifierData *md, Object *ob, IDWalkFunc walk, void *userData) | static void foreachIDLink(ModifierData *md, Object *ob, IDWalkFunc walk, void *userData) | ||||
| { | { | ||||
| CurveModifierData *cmd = (CurveModifierData *)md; | CurveModifierData *cmd = (CurveModifierData *)md; | ||||
| walk(userData, ob, (ID **)&cmd->object, IDWALK_CB_NOP); | walk(userData, ob, (ID **)&cmd->object, IDWALK_CB_NOP); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||