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()
local bone = {}
while content() do
table.insert(bone, {
vertex_id = id(),
weight = float()
})
local vertex_id = id()
assert(not bone[vertex_id], "duplicate vertex weight")
bone[vertex_id] = float()
end
return bone
end,