Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/node/deg_node.cc
| Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | switch (type) { | ||||
| case NodeType::SYNCHRONIZATION: | case NodeType::SYNCHRONIZATION: | ||||
| return "SYNCHRONIZATION"; | return "SYNCHRONIZATION"; | ||||
| case NodeType::AUDIO: | case NodeType::AUDIO: | ||||
| return "AUDIO"; | return "AUDIO"; | ||||
| case NodeType::ARMATURE: | case NodeType::ARMATURE: | ||||
| return "ARMATURE"; | return "ARMATURE"; | ||||
| case NodeType::GENERIC_DATABLOCK: | case NodeType::GENERIC_DATABLOCK: | ||||
| return "GENERIC_DATABLOCK"; | return "GENERIC_DATABLOCK"; | ||||
| case NodeType::VISIBILITY: | |||||
| return "VISIBILITY"; | |||||
| case NodeType::SIMULATION: | case NodeType::SIMULATION: | ||||
| return "SIMULATION"; | return "SIMULATION"; | ||||
| /* Total number of meaningful node types. */ | /* Total number of meaningful node types. */ | ||||
| case NodeType::NUM_TYPES: | case NodeType::NUM_TYPES: | ||||
| return "SpecialCase"; | return "SpecialCase"; | ||||
| } | } | ||||
| BLI_assert_msg(0, "Unhandled node type, should never happen."); | BLI_assert_msg(0, "Unhandled node type, should never happen."); | ||||
| ▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | switch (type) { | ||||
| case NodeType::GEOMETRY: | case NodeType::GEOMETRY: | ||||
| case NodeType::EVAL_POSE: | case NodeType::EVAL_POSE: | ||||
| case NodeType::BONE: | case NodeType::BONE: | ||||
| case NodeType::SHADING: | case NodeType::SHADING: | ||||
| case NodeType::CACHE: | case NodeType::CACHE: | ||||
| case NodeType::PROXY: | case NodeType::PROXY: | ||||
| case NodeType::SIMULATION: | case NodeType::SIMULATION: | ||||
| return DEG_SCENE_COMP_PARAMETERS; | return DEG_SCENE_COMP_PARAMETERS; | ||||
| case NodeType::VISIBILITY: | |||||
| BLI_assert_msg(0, "Visibility component is supposed to be only used internally."); | |||||
| return DEG_SCENE_COMP_PARAMETERS; | |||||
| } | } | ||||
| BLI_assert_msg(0, "Unhandled node type, not supposed to happen."); | BLI_assert_msg(0, "Unhandled node type, not supposed to happen."); | ||||
| return DEG_SCENE_COMP_PARAMETERS; | return DEG_SCENE_COMP_PARAMETERS; | ||||
| } | } | ||||
| NodeType nodeTypeFromObjectComponent(eDepsObjectComponentType component_type) | NodeType nodeTypeFromObjectComponent(eDepsObjectComponentType component_type) | ||||
| { | { | ||||
| switch (component_type) { | switch (component_type) { | ||||
| ▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | switch (type) { | ||||
| case NodeType::IMAGE_ANIMATION: | case NodeType::IMAGE_ANIMATION: | ||||
| case NodeType::BATCH_CACHE: | case NodeType::BATCH_CACHE: | ||||
| case NodeType::DUPLI: | case NodeType::DUPLI: | ||||
| case NodeType::SYNCHRONIZATION: | case NodeType::SYNCHRONIZATION: | ||||
| case NodeType::SIMULATION: | case NodeType::SIMULATION: | ||||
| case NodeType::UNDEFINED: | case NodeType::UNDEFINED: | ||||
| case NodeType::NUM_TYPES: | case NodeType::NUM_TYPES: | ||||
| return DEG_OB_COMP_PARAMETERS; | return DEG_OB_COMP_PARAMETERS; | ||||
| case NodeType::VISIBILITY: | |||||
| BLI_assert_msg(0, "Visibility component is supposed to be only used internally."); | |||||
| return DEG_OB_COMP_PARAMETERS; | |||||
| } | } | ||||
| BLI_assert_msg(0, "Unhandled node type, not suppsed to happen."); | BLI_assert_msg(0, "Unhandled node type, not suppsed to happen."); | ||||
| return DEG_OB_COMP_PARAMETERS; | return DEG_OB_COMP_PARAMETERS; | ||||
| } | } | ||||
| /******************************************************************************* | /******************************************************************************* | ||||
| * Type information. | * Type information. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines | |||||