depsgraph: Fix 32 bit shift bug in get_visible_components_mask.

1 << n results in a 32 bit result, 1UL << n retains all 64 bits.
This commit is contained in:
2018-09-25 09:23:00 -06:00
parent 2f00f5b98f
commit bd51cada8d

View File

@@ -230,7 +230,7 @@ IDComponentsMask IDDepsNode::get_visible_components_mask() const {
if (comp_node->affects_directly_visible) {
const int component_type = comp_node->type;
BLI_assert(component_type < 64);
result |= (1 << component_type);
result |= (1UL << component_type);
}
}
GHASH_FOREACH_END();