diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-07-26 11:49:54 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-07-26 11:49:54 +0300 |
commit | 711d3a8a2b0b518b4fe270e733e053fad8932c97 (patch) | |
tree | 3b6cea3e7341b8b07cc837e653bb09cbbc865359 /source/blender/depsgraph | |
parent | 40a0fa8a8f1299e614ecaf6c271ef5a7fa02ee46 (diff) |
Depsgraph: Use proper check whether ID is an object
Fixes bug which resulted in making it so layers from all
layers are getting updated.
Reported by Juan Pablo Bouza.
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r-- | source/blender/depsgraph/intern/nodes/deg_node.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/nodes/deg_node.cc b/source/blender/depsgraph/intern/nodes/deg_node.cc index db807d22b89..eb408f293de 100644 --- a/source/blender/depsgraph/intern/nodes/deg_node.cc +++ b/source/blender/depsgraph/intern/nodes/deg_node.cc @@ -182,7 +182,7 @@ void IDDepsNode::init(const ID *id, const string &UNUSED(subdata)) this->eval_flags = 0; /* For object we initialize layers to layer from base. */ - if (GS(id) == ID_OB) { + if (GS(id->name) == ID_OB) { this->layers = 0; } |