forked from bartvdbraak/blender
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:
parent
ed75a50119
commit
021c40167d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user