mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-26 01:03:46 +01:00
Improve B3D table format
This commit is contained in:
parent
f5a7d6b1fe
commit
81793819a3
7
b3d.lua
7
b3d.lua
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user