Skip to content

Commit b3985c1

Browse files
committed
Remove incorrect early-exit for oldBackground == -newBackground case
Signed-off-by: Neil Bickford <nbickford@nvidia.com>
1 parent 5475fe3 commit b3985c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openvdb/openvdb/tree/LeafNode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ LeafNode<T, Log2Dim>::resetBackground(const ValueType& oldBackground,
16101610
const ValueType& newBackground)
16111611
{
16121612
if (!this->allocate()) return;
1613-
if (oldBackground == newBackground || math::negative(oldBackground) == newBackground) return;
1613+
if (math::isExactlyEqual(oldBackground, newBackground)) return;
16141614

16151615
typename NodeMaskType::OffIterator iter;
16161616
// For all inactive values...

0 commit comments

Comments
 (0)