mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-24 20:40:15 +00:00
Fixed buffer access into empty container
Raised as a run-time error by the VS2013 debug STL implementation.
This commit is contained in:
parent
d335c7249e
commit
8568370630
@ -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