Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/depsgraph.c
| Show First 20 Lines • Show All 583 Lines • ▼ Show 20 Lines | if (ob->parent) { | ||||
| switch (ob->partype) { | switch (ob->partype) { | ||||
| case PARSKEL: | case PARSKEL: | ||||
| dag_add_relation(dag, node2, node, DAG_RL_DATA_DATA | DAG_RL_OB_OB, "Parent"); | dag_add_relation(dag, node2, node, DAG_RL_DATA_DATA | DAG_RL_OB_OB, "Parent"); | ||||
| break; | break; | ||||
| case PARVERT1: case PARVERT3: | case PARVERT1: case PARVERT3: | ||||
| dag_add_relation(dag, node2, node, DAG_RL_DATA_OB | DAG_RL_OB_OB, "Vertex Parent"); | dag_add_relation(dag, node2, node, DAG_RL_DATA_OB | DAG_RL_OB_OB, "Vertex Parent"); | ||||
| node2->customdata_mask |= CD_MASK_ORIGINDEX; | node2->customdata_mask |= CD_MASK_ORIGINDEX; | ||||
| node2->eval_flags |= DAG_EVAL_NEED_DM_FOR_RENDER; | |||||
| break; | break; | ||||
| case PARBONE: | case PARBONE: | ||||
| dag_add_relation(dag, node2, node, DAG_RL_DATA_OB | DAG_RL_OB_OB, "Bone Parent"); | dag_add_relation(dag, node2, node, DAG_RL_DATA_OB | DAG_RL_OB_OB, "Bone Parent"); | ||||
| break; | break; | ||||
| default: | default: | ||||
| if (ob->parent->type == OB_LATTICE) | if (ob->parent->type == OB_LATTICE) | ||||
| dag_add_relation(dag, node2, node, DAG_RL_DATA_DATA | DAG_RL_OB_OB, "Lattice Parent"); | dag_add_relation(dag, node2, node, DAG_RL_DATA_DATA | DAG_RL_OB_OB, "Lattice Parent"); | ||||
| else if (ob->parent->type == OB_CURVE) { | else if (ob->parent->type == OB_CURVE) { | ||||
| ▲ Show 20 Lines • Show All 273 Lines • ▼ Show 20 Lines | else if (cti->get_constraint_targets) { | ||||
| else { | else { | ||||
| if (ELEM(obt->type, OB_ARMATURE, OB_MESH, OB_LATTICE) && (ct->subtarget[0])) { | if (ELEM(obt->type, OB_ARMATURE, OB_MESH, OB_LATTICE) && (ct->subtarget[0])) { | ||||
| dag_add_relation(dag, node2, node, DAG_RL_DATA_OB | DAG_RL_OB_OB, cti->name); | dag_add_relation(dag, node2, node, DAG_RL_DATA_OB | DAG_RL_OB_OB, cti->name); | ||||
| if (obt->type == OB_MESH) | if (obt->type == OB_MESH) | ||||
| node2->customdata_mask |= CD_MASK_MDEFORMVERT; | node2->customdata_mask |= CD_MASK_MDEFORMVERT; | ||||
| } | } | ||||
| else | else | ||||
| dag_add_relation(dag, node2, node, DAG_RL_OB_OB, cti->name); | dag_add_relation(dag, node2, node, DAG_RL_OB_OB, cti->name); | ||||
| if (con->type == CONSTRAINT_TYPE_SHRINKWRAP) { | |||||
| node2->eval_flags |= DAG_EVAL_NEED_DM_FOR_RENDER; | |||||
| } | |||||
| } | } | ||||
| addtoroot = 0; | addtoroot = 0; | ||||
| } | } | ||||
| if (cti->flush_constraint_targets) | if (cti->flush_constraint_targets) | ||||
| cti->flush_constraint_targets(con, &targets, 1); | cti->flush_constraint_targets(con, &targets, 1); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,308 Lines • Show Last 20 Lines | |||||