Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder_rna.cc
| Show First 20 Lines • Show All 279 Lines • ▼ Show 20 Lines | RNANodeIdentifier RNANodeQuery::construct_node_identifier(const PointerRNA *ptr, | ||||
| else if (RNA_struct_is_a(ptr->type, &RNA_Mesh) || RNA_struct_is_a(ptr->type, &RNA_Modifier) || | else if (RNA_struct_is_a(ptr->type, &RNA_Mesh) || RNA_struct_is_a(ptr->type, &RNA_Modifier) || | ||||
| RNA_struct_is_a(ptr->type, &RNA_GpencilModifier) || | RNA_struct_is_a(ptr->type, &RNA_GpencilModifier) || | ||||
| RNA_struct_is_a(ptr->type, &RNA_Spline) || RNA_struct_is_a(ptr->type, &RNA_TextBox) || | RNA_struct_is_a(ptr->type, &RNA_Spline) || RNA_struct_is_a(ptr->type, &RNA_TextBox) || | ||||
| RNA_struct_is_a(ptr->type, &RNA_GPencilLayer) || | RNA_struct_is_a(ptr->type, &RNA_GPencilLayer) || | ||||
| RNA_struct_is_a(ptr->type, &RNA_LatticePoint) || | RNA_struct_is_a(ptr->type, &RNA_LatticePoint) || | ||||
| RNA_struct_is_a(ptr->type, &RNA_MeshUVLoop) || | RNA_struct_is_a(ptr->type, &RNA_MeshUVLoop) || | ||||
| RNA_struct_is_a(ptr->type, &RNA_MeshLoopColor) || | RNA_struct_is_a(ptr->type, &RNA_MeshLoopColor) || | ||||
| RNA_struct_is_a(ptr->type, &RNA_VertexGroupElement)) { | RNA_struct_is_a(ptr->type, &RNA_VertexGroupElement)) { | ||||
| if (prop != NULL && RNA_property_is_idprop(prop)) { | |||||
| /* This occurs when a driver points to a custom property on a mesh datablock. */ | |||||
| node_identifier.type = NodeType::PARAMETERS; | |||||
| node_identifier.operation_code = OperationCode::ID_PROPERTY; | |||||
| node_identifier.operation_name = RNA_property_identifier((PropertyRNA *)prop); | |||||
| printf("→ ID_PROPERTY %s\n", node_identifier.operation_name); | |||||
sergey: Can be `DEG_DEBUG_PRINTF`, or removed. Shouldn't be bare `printf`. | |||||
| return node_identifier; | |||||
| } | |||||
| /* When modifier is used as FROM operation this is likely referencing to | /* When modifier is used as FROM operation this is likely referencing to | ||||
| * the property (for example, modifier's influence). | * the property (for example, modifier's influence). | ||||
| * But when it's used as TO operation, this is geometry component. */ | * But when it's used as TO operation, this is geometry component. */ | ||||
| switch (source) { | switch (source) { | ||||
| case RNAPointerSource::ENTRY: | case RNAPointerSource::ENTRY: | ||||
| node_identifier.type = NodeType::GEOMETRY; | node_identifier.type = NodeType::GEOMETRY; | ||||
| break; | break; | ||||
| case RNAPointerSource::EXIT: | case RNAPointerSource::EXIT: | ||||
| ▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines | |||||
Can be DEG_DEBUG_PRINTF, or removed. Shouldn't be bare printf.