OpenSubdiv: Fix wrong handling of vertex parent

Vertex parent was not registered as CPU data requirement.

Should be in the 'a' release.
This commit is contained in:
Sergey Sharybin 2015-10-27 20:44:14 +05:00
parent f1555c8bba
commit 7e7527d3ce
Notes: blender-bot 2023-07-10 10:12:37 +02:00
Referenced by issue #46589, OpenSubdiv misbehavior and crash with vertex-parented children and drivers.
1 changed files with 1 additions and 1 deletions

View File

@ -1139,7 +1139,7 @@ void dag_add_relation(DagForest *forest, DagNode *fob1, DagNode *fob2, short rel
/* TODO(sergey): Find a better place for this. */
#ifdef WITH_OPENSUBDIV
if ((rel & DAG_RL_DATA_DATA) != 0) {
if ((rel & (DAG_RL_DATA_DATA | DAG_RL_DATA_OB)) != 0) {
if (fob1->type == ID_OB) {
if ((fob1->eval_flags & DAG_EVAL_NEED_CPU) == 0) {
Object *ob2 = fob2->ob;