ws-3d: model/vox (MagicaVoxel read/write: every chunk, scene graph, materials, layers, render objects, cameras, notes, IMAP, META, unknown chunks kept), ops/MeshOps (triangulate, transform, normals, tangents, weld/unweld, bounds, merge, scale/setUnit/setUp, greedy voxel meshing); Types: Scene.reader/mul/nodeMatrix/flatten helpers; compat: __iter visits t[0] on LuaJIT (was skipped by ipairs)
This commit is contained in:
1 parent
a55b58b102
commit
b37c61a96c
22 files changed
+3269
-1
No files matched your search
@@ -212,6 +212,12 @@ do
|
||||
count += 1
|
||||
end
|
||||
t:eq(count, 3, "for over a mixed table visits every key")
|
||||
local zero = { [0] = 5, 6, 7 }
|
||||
local zsum = 0
|
||||
for _, v in zero do
|
||||
zsum += v
|
||||
end
|
||||
t:eq(zsum, 18, "for over a table with key 0 visits it (LuaJIT keeps t[0] in the array part)")
|
||||
local w = {}
|
||||
for word in string.gmatch("a b c", "%a") do
|
||||
table.insert(w, word)
|
||||
|
||||
Reference in new issue
Block a user