Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph_tag.cc
| Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | case ID_OB: | ||||
| const Object *object = (Object *)id; | const Object *object = (Object *)id; | ||||
| switch (object->type) { | switch (object->type) { | ||||
| case OB_MESH: | case OB_MESH: | ||||
| case OB_CURVE: | case OB_CURVE: | ||||
| case OB_SURF: | case OB_SURF: | ||||
| case OB_FONT: | case OB_FONT: | ||||
| case OB_LATTICE: | case OB_LATTICE: | ||||
| case OB_MBALL: | case OB_MBALL: | ||||
| case OB_GPENCIL: | |||||
| *component_type = DEG_NODE_TYPE_GEOMETRY; | *component_type = DEG_NODE_TYPE_GEOMETRY; | ||||
| break; | break; | ||||
| case OB_ARMATURE: | case OB_ARMATURE: | ||||
| *component_type = DEG_NODE_TYPE_EVAL_POSE; | *component_type = DEG_NODE_TYPE_EVAL_POSE; | ||||
| break; | break; | ||||
| /* TODO(sergey): More cases here? */ | /* TODO(sergey): More cases here? */ | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| case ID_ME: | case ID_ME: | ||||
| *component_type = DEG_NODE_TYPE_GEOMETRY; | *component_type = DEG_NODE_TYPE_GEOMETRY; | ||||
| break; | break; | ||||
| case ID_PA: | case ID_PA: /* Particles */ | ||||
| return; | return; | ||||
| case ID_LP: | case ID_LP: | ||||
| *component_type = DEG_NODE_TYPE_PARAMETERS; | *component_type = DEG_NODE_TYPE_PARAMETERS; | ||||
| break; | break; | ||||
| case ID_GD: | |||||
| *component_type = DEG_NODE_TYPE_GEOMETRY; | |||||
| break; | |||||
| case ID_PAL: /* Palettes */ | |||||
| *component_type = DEG_NODE_TYPE_PARAMETERS; | |||||
| break; | |||||
| default: | default: | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| void depsgraph_select_tag_to_component_opcode( | void depsgraph_select_tag_to_component_opcode( | ||||
| const ID *id, | const ID *id, | ||||
| eDepsNode_Type *component_type, | eDepsNode_Type *component_type, | ||||
| ▲ Show 20 Lines • Show All 593 Lines • Show Last 20 Lines | |||||