Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| if (object->type == OB_MBALL) { | if (object->type == OB_MBALL) { | ||||
| bool was_mom = BKE_mball_is_basis(object); | |||||
| Object *mom = BKE_mball_basis_find(scene_, object); | Object *mom = BKE_mball_basis_find(scene_, object); | ||||
| ComponentKey mom_geom_key(&mom->id, NodeType::GEOMETRY); | ComponentKey mom_geom_key(&mom->id, NodeType::GEOMETRY); | ||||
| /* motherball - mom depends on children! */ | /* motherball - mom depends on children! */ | ||||
| Context not available. | |||||
| add_relation(mom_transform_key, | add_relation(mom_transform_key, | ||||
| mom_geom_key, | mom_geom_key, | ||||
| "Metaball Motherball Transform -> Geometry"); | "Metaball Motherball Transform -> Geometry"); | ||||
| /* If we were not the mother/basis before this, make sure to | |||||
| * mark the geometry cache as dirty. | |||||
| */ | |||||
| if ( !was_mom ) { | |||||
| DEG_id_tag_update(&mom->id, ID_RECALC_GEOMETRY); | |||||
| } | |||||
| } | } | ||||
| else { | else { | ||||
| ComponentKey transform_key(&object->id, NodeType::TRANSFORM); | ComponentKey transform_key(&object->id, NodeType::TRANSFORM); | ||||
| Context not available. | |||||