Depsgraph: Fix infinite viewport object update in CYcles render mode

The issue was caused by wrong object re-tag needed to have proper dependnecies
update for OpenSubdiv.
This commit is contained in:
Sergey Sharybin 2016-11-21 12:00:09 +01:00
parent b3c8ee891a
commit 5eab3b079f
2 changed files with 3 additions and 2 deletions

View File

@ -48,6 +48,8 @@
#include "util/deg_util_foreach.h"
#include <cstdio>
namespace DEG {
string deg_fcurve_id_name(const FCurve *fcu)

View File

@ -371,8 +371,7 @@ DepsRelation *Depsgraph::add_new_relation(OperationDepsNode *from,
if (comp_node->type == DEPSNODE_TYPE_GEOMETRY) {
IDDepsNode *id_to = to->owner->owner;
IDDepsNode *id_from = from->owner->owner;
Object *object_to = (Object *)id_to->id;
if (id_to != id_from && (object_to->recalc & OB_RECALC_ALL)) {
if (id_to != id_from && (id_to->id->tag & LIB_TAG_ID_RECALC_ALL)) {
if ((id_from->eval_flags & DAG_EVAL_NEED_CPU) == 0) {
id_from->tag_update(this);
id_from->eval_flags |= DAG_EVAL_NEED_CPU;