Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2020-11-09 16:05:18 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2020-11-09 16:52:48 +0300
commit021c40167dea0fae056775f979a6e94c8fcc2a37 (patch)
tree8c093e3e9e62f1ef8baf612d4e100d84c552fc82 /intern
parented75a5011975a2ac026f52b06c389c0c06dd7f45 (diff)
Cycles: fix Node::tag_modified not setting modified flag's upper bits
Previous code was flipping the bits on a 32-bit number and doing a zero extension to cast to 64-bit, so mark the constant as long to begin with. This would also erase previously set bits in this part the flag.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/graph/node.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/graph/node.cpp b/intern/cycles/graph/node.cpp
index 0f073ed9b63..c926f6ab8ef 100644
--- a/intern/cycles/graph/node.cpp
+++ b/intern/cycles/graph/node.cpp
@@ -35,7 +35,7 @@ Node::Node(const NodeType *type_, ustring name_) : name(name_), type(type_)
assert(type);
owner = nullptr;
- socket_modified = ~0;
+ tag_modified();
/* assign non-empty name, convenient for debugging */
if (name.empty()) {
@@ -785,7 +785,7 @@ bool Node::is_modified()
void Node::tag_modified()
{
- socket_modified = ~0u;
+ socket_modified = ~0ull;
}
void Node::clear_modified()