Cleanup: use zero_v3 to clear colors.
This commit is contained in:
parent
73af762e9c
commit
dcf7313e73
|
@ -75,9 +75,7 @@ void ntreeCompositCryptomatteSyncFromAdd(bNodeTree *UNUSED(ntree), bNode *node)
|
|||
NodeCryptomatte *n = static_cast<NodeCryptomatte *>(node->storage);
|
||||
if (n->add[0] != 0.0f) {
|
||||
cryptomatte_add(*n, n->add[0]);
|
||||
n->add[0] = 0.0f;
|
||||
n->add[1] = 0.0f;
|
||||
n->add[2] = 0.0f;
|
||||
zero_v3(n->add);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -86,9 +84,7 @@ void ntreeCompositCryptomatteSyncFromRemove(bNodeTree *UNUSED(ntree), bNode *nod
|
|||
NodeCryptomatte *n = static_cast<NodeCryptomatte *>(node->storage);
|
||||
if (n->remove[0] != 0.0f) {
|
||||
cryptomatte_remove(*n, n->remove[0]);
|
||||
n->remove[0] = 0.0f;
|
||||
n->remove[1] = 0.0f;
|
||||
n->remove[2] = 0.0f;
|
||||
zero_v3(n->remove);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue