# HG changeset patch # User Sam # Date 1708769338 -25200 # Node ID 58478c5873f1a1b2a691056b5628e20c88c3b653 # Parent f9d25bc331b3cb6037e88f43af43dcc97b7c2075 fix: wrong comparison diff -r f9d25bc331b3 -r 58478c5873f1 semicongine/resources/mesh.nim --- a/semicongine/resources/mesh.nim Sat Feb 24 15:35:52 2024 +0700 +++ b/semicongine/resources/mesh.nim Sat Feb 24 17:08:58 2024 +0700 @@ -360,7 +360,7 @@ assert data.structuredContent["buffers"].len == 1 assert not data.structuredContent["buffers"][0].hasKey("uri") let bufferLenDiff = int(chunkLength) - data.structuredContent["buffers"][0]["byteLength"].getInt() - assert 0 <= bufferLenDiff <= 3 # binary buffer may be aligned to 4 bytes + assert 0 <= bufferLenDiff and bufferLenDiff <= 3 # binary buffer may be aligned to 4 bytes debug "Loading mesh: ", data.structuredContent.pretty