# HG changeset patch # User Sam # Date 1708769338 -25200 # Node ID 273f64d80f1fc35d7602b48d8cc83c4d921a2830 # Parent a9d71d2c24612e04f80ff36d38082319ac3dd5fe fix: wrong comparison diff -r a9d71d2c2461 -r 273f64d80f1f 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