diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-07-26 11:38:13 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-07-26 11:45:07 +0300 |
commit | 40a0fa8a8f1299e614ecaf6c271ef5a7fa02ee46 (patch) | |
tree | 4a72f84fc62375cb34747254e7f020d5e2ca53c7 /source/blender/depsgraph/intern/nodes | |
parent | eececb0d8036bfcf048a3f1e47e8033e21bf86a9 (diff) |
Depsgraph: Use proper unsigned int bitfield for layers flags
Diffstat (limited to 'source/blender/depsgraph/intern/nodes')
3 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/depsgraph/intern/nodes/deg_node.h b/source/blender/depsgraph/intern/nodes/deg_node.h index 416996052c9..b2262c4bd12 100644 --- a/source/blender/depsgraph/intern/nodes/deg_node.h +++ b/source/blender/depsgraph/intern/nodes/deg_node.h @@ -176,7 +176,7 @@ struct IDDepsNode : public DepsNode { GHash *components; /* Layers of this node with accumulated layers of it's output relations. */ - int layers; + unsigned int layers; /* Additional flags needed for scene evaluation. * TODO(sergey): Only needed for until really granular updates diff --git a/source/blender/depsgraph/intern/nodes/deg_node_component.cc b/source/blender/depsgraph/intern/nodes/deg_node_component.cc index 6ac45c99798..5832c458896 100644 --- a/source/blender/depsgraph/intern/nodes/deg_node_component.cc +++ b/source/blender/depsgraph/intern/nodes/deg_node_component.cc @@ -120,7 +120,7 @@ string ComponentDepsNode::identifier() const sprintf(typebuf, "(%d)", type); char layers[16]; - sprintf(layers, "%d", this->layers); + sprintf(layers, "%u", this->layers); return string(typebuf) + name + " : " + idname + " (Layers: " + layers + ")"; } diff --git a/source/blender/depsgraph/intern/nodes/deg_node_component.h b/source/blender/depsgraph/intern/nodes/deg_node_component.h index 6f62d91cd79..acccb1cdcd4 100644 --- a/source/blender/depsgraph/intern/nodes/deg_node_component.h +++ b/source/blender/depsgraph/intern/nodes/deg_node_component.h @@ -159,7 +159,7 @@ struct ComponentDepsNode : public DepsNode { // XXX: a poll() callback to check if component's first node can be started? /* Temporary bitmask, used during graph construction. */ - int layers; + unsigned int layers; }; /* ---------------------------------------- */ |