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.
This commit is contained in:
Kévin Dietrich 2020-11-09 14:05:18 +01:00
parent ed75a50119
commit 021c40167d
1 changed files with 2 additions and 2 deletions

View File

@ -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()