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.
2 parents d2eae42 + f548be3 commit b4e0140Copy full SHA for b4e0140
src/SharpGLTF.Core/Schema2/gltf.Buffer.cs
@@ -261,7 +261,7 @@ public void MergeBuffers(int maxSize)
261
262
var alreadyFull = last.BufferSize >= maxSize;
263
var notEmpty = last.BufferSize > 0;
264
- var bvTooBig = bv.Content.Count >= maxSize;
+ var bvTooBig = (long)bv.Content.Count + last.BufferSize >= maxSize;
265
266
if (alreadyFull || (notEmpty && bvTooBig))
267
{
0 commit comments