Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc
| Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | if (data->tar != NULL) { | ||||
| else if (data->subtarget[0] && | else if (data->subtarget[0] && | ||||
| ELEM(data->tar->type, OB_MESH, OB_LATTICE)) | ELEM(data->tar->type, OB_MESH, OB_LATTICE)) | ||||
| { | { | ||||
| /* Vertex group target. */ | /* Vertex group target. */ | ||||
| /* NOTE: for now, we don't need to represent vertex groups | /* NOTE: for now, we don't need to represent vertex groups | ||||
| * separately. */ | * separately. */ | ||||
| ComponentKey target_key(&data->tar->id, NodeType::GEOMETRY); | ComponentKey target_key(&data->tar->id, NodeType::GEOMETRY); | ||||
| add_relation(target_key, solver_key, con->name); | add_relation(target_key, solver_key, con->name); | ||||
| add_customdata_mask(data->tar, CD_MASK_MDEFORMVERT); | add_customdata_mask(data->tar, CD_MASK_MDEFORMVERT, 0, 0, 0, 0); | ||||
| } | } | ||||
| else { | else { | ||||
| /* Standard Object Target. */ | /* Standard Object Target. */ | ||||
| ComponentKey target_key(&data->tar->id, NodeType::TRANSFORM); | ComponentKey target_key(&data->tar->id, NodeType::TRANSFORM); | ||||
| add_relation(target_key, pose_key, con->name); | add_relation(target_key, pose_key, con->name); | ||||
| } | } | ||||
| if (data->tar == object && data->subtarget[0]) { | if (data->tar == object && data->subtarget[0]) { | ||||
| /* Prevent target's constraints from linking to anything from same | /* Prevent target's constraints from linking to anything from same | ||||
| Show All 13 Lines | if (data->poletar != NULL) { | ||||
| else if (data->polesubtarget[0] && | else if (data->polesubtarget[0] && | ||||
| ELEM(data->poletar->type, OB_MESH, OB_LATTICE)) | ELEM(data->poletar->type, OB_MESH, OB_LATTICE)) | ||||
| { | { | ||||
| /* Vertex group target. */ | /* Vertex group target. */ | ||||
| /* NOTE: for now, we don't need to represent vertex groups | /* NOTE: for now, we don't need to represent vertex groups | ||||
| * separately. */ | * separately. */ | ||||
| ComponentKey target_key(&data->poletar->id, NodeType::GEOMETRY); | ComponentKey target_key(&data->poletar->id, NodeType::GEOMETRY); | ||||
| add_relation(target_key, solver_key, con->name); | add_relation(target_key, solver_key, con->name); | ||||
| add_customdata_mask(data->poletar, CD_MASK_MDEFORMVERT); | add_customdata_mask(data->poletar, CD_MASK_MDEFORMVERT, 0, 0, 0, 0); | ||||
| } | } | ||||
| else { | else { | ||||
| ComponentKey target_key(&data->poletar->id, NodeType::TRANSFORM); | ComponentKey target_key(&data->poletar->id, NodeType::TRANSFORM); | ||||
| add_relation(target_key, solver_key, con->name); | add_relation(target_key, solver_key, con->name); | ||||
| } | } | ||||
| } | } | ||||
| DEG_DEBUG_PRINTF( | DEG_DEBUG_PRINTF( | ||||
| (::Depsgraph *)graph_, | (::Depsgraph *)graph_, | ||||
| ▲ Show 20 Lines • Show All 433 Lines • Show Last 20 Lines | |||||