mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-01 12:50:13 +00:00
Merge pull request #528 from davidgyu/memfix
Fixed buffer access into empty container
This commit is contained in:
commit
47f79e54fc
@ -222,7 +222,7 @@ private:
|
||||
//
|
||||
// Additionally, if the client does not want the resulting verts
|
||||
// compacted, do not attempt to combine weights.
|
||||
if (_compactWeights and _dests[lastOffset] == dst) {
|
||||
if (_compactWeights and !_dests.empty() and _dests[lastOffset] == dst) {
|
||||
|
||||
// tableSize is exactly _sources.size(), but using tableSize is
|
||||
// significantly faster.
|
||||
|
Loading…
Reference in New Issue
Block a user