mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 23:33:53 +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()
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user