Depsgraph: Add criteria for RNA_Key

This commit is contained in:
2017-12-04 18:06:02 +01:00
parent fe5e8593b7
commit b26992fe6e

View File

@@ -189,6 +189,11 @@ static bool pointer_to_component_node_criteria(
*type = DEG_NODE_TYPE_GEOMETRY; *type = DEG_NODE_TYPE_GEOMETRY;
return true; return true;
} }
else if (ptr->type == &RNA_Key) {
*id = (ID *)ptr->id.data;
*type = DEG_NODE_TYPE_GEOMETRY;
return true;
}
else if (RNA_struct_is_a(ptr->type, &RNA_Sequence)) { else if (RNA_struct_is_a(ptr->type, &RNA_Sequence)) {
Sequence *seq = (Sequence *)ptr->data; Sequence *seq = (Sequence *)ptr->data;
/* Sequencer strip */ /* Sequencer strip */