Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_relations.c
| Show First 20 Lines • Show All 806 Lines • ▼ Show 20 Lines | case PAR_ARMATURE_AUTO: | ||||
| switch (partype) { | switch (partype) { | ||||
| case PAR_CURVE: /* curve deform */ | case PAR_CURVE: /* curve deform */ | ||||
| if (BKE_modifiers_is_deformed_by_curve(ob) != par) { | if (BKE_modifiers_is_deformed_by_curve(ob) != par) { | ||||
| md = ED_object_modifier_add(reports, bmain, scene, ob, NULL, eModifierType_Curve); | md = ED_object_modifier_add(reports, bmain, scene, ob, NULL, eModifierType_Curve); | ||||
| if (md) { | if (md) { | ||||
| ((CurveModifierData *)md)->object = par; | ((CurveModifierData *)md)->object = par; | ||||
| } | } | ||||
| if (par->runtime.curve_cache && par->runtime.curve_cache->path == NULL) { | if (par->runtime.curve_cache && | ||||
| par->runtime.curve_cache->anim_path_accum_length == NULL) { | |||||
| DEG_id_tag_update(&par->id, ID_RECALC_GEOMETRY); | DEG_id_tag_update(&par->id, ID_RECALC_GEOMETRY); | ||||
| } | } | ||||
| } | } | ||||
| break; | break; | ||||
| case PAR_LATTICE: /* lattice deform */ | case PAR_LATTICE: /* lattice deform */ | ||||
| if (BKE_modifiers_is_deformed_by_lattice(ob) != par) { | if (BKE_modifiers_is_deformed_by_lattice(ob) != par) { | ||||
| md = ED_object_modifier_add(reports, bmain, scene, ob, NULL, eModifierType_Lattice); | md = ED_object_modifier_add(reports, bmain, scene, ob, NULL, eModifierType_Lattice); | ||||
| if (md) { | if (md) { | ||||
| ▲ Show 20 Lines • Show All 1,974 Lines • Show Last 20 Lines | |||||