Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_rna.cc
| Show First 20 Lines • Show All 174 Lines • ▼ Show 20 Lines | RNANodeIdentifier RNANodeQuery::construct_node_identifier(const PointerRNA *ptr, | ||||
| } | } | ||||
| /* Set default values for returns. */ | /* Set default values for returns. */ | ||||
| node_identifier.id = ptr->owner_id; | node_identifier.id = ptr->owner_id; | ||||
| node_identifier.component_name = ""; | node_identifier.component_name = ""; | ||||
| node_identifier.operation_code = OperationCode::OPERATION; | node_identifier.operation_code = OperationCode::OPERATION; | ||||
| node_identifier.operation_name = ""; | node_identifier.operation_name = ""; | ||||
| node_identifier.operation_name_tag = -1; | node_identifier.operation_name_tag = -1; | ||||
| /* Handling of commonly known scenarios. */ | /* Handling of commonly known scenarios. */ | ||||
| if (prop != nullptr && RNA_property_is_idprop(prop)) { | if (prop != nullptr && RNA_property_is_idprop(prop) && | ||||
| !RNA_struct_is_a(ptr->type, &RNA_Modifier)) { | |||||
| node_identifier.type = NodeType::PARAMETERS; | node_identifier.type = NodeType::PARAMETERS; | ||||
| node_identifier.operation_code = OperationCode::ID_PROPERTY; | node_identifier.operation_code = OperationCode::ID_PROPERTY; | ||||
| node_identifier.operation_name = RNA_property_identifier( | node_identifier.operation_name = RNA_property_identifier( | ||||
| reinterpret_cast<const PropertyRNA *>(prop)); | reinterpret_cast<const PropertyRNA *>(prop)); | ||||
| return node_identifier; | return node_identifier; | ||||
| } | } | ||||
| if (ptr->type == &RNA_PoseBone) { | if (ptr->type == &RNA_PoseBone) { | ||||
| const bPoseChannel *pchan = static_cast<const bPoseChannel *>(ptr->data); | const bPoseChannel *pchan = static_cast<const bPoseChannel *>(ptr->data); | ||||
| ▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines | |||||