Improve B3D table format

This commit is contained in:
Lars Mueller 2021-02-01 13:20:07 +01:00
parent f5a7d6b1fe
commit 81793819a3

@ -191,10 +191,9 @@ function read(stream)
BONE = function() BONE = function()
local bone = {} local bone = {}
while content() do while content() do
table.insert(bone, { local vertex_id = id()
vertex_id = id(), assert(not bone[vertex_id], "duplicate vertex weight")
weight = float() bone[vertex_id] = float()
})
end end
return bone return bone
end, end,