We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b7c521 commit 7b8f054Copy full SHA for 7b8f054
openvdb/openvdb/tree/LeafNode.h
@@ -229,7 +229,7 @@ class LeafNode
229
// Unlike other value iterators, cache the buffer data as part of
230
// the iterators members to avoid the cost of going through the
231
// leaf buffer atomic/checking API
232
- , mData(parent->buffer().data()) {}
+ , mData([&]() { OPENVDB_ASSERT(parent); return parent->buffer().data(); }()) {}
233
234
ValueT& getItem(Index pos) const { return mData[pos]; }
235
ValueT& getValue() const { return this->getItem(this->pos()); }
0 commit comments