mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-29 10:43:43 +01:00
Strip unneeded zero weights
This commit is contained in:
parent
81793819a3
commit
12826a7840
6
b3d.lua
6
b3d.lua
@ -193,7 +193,11 @@ function read(stream)
|
||||
while content() do
|
||||
local vertex_id = id()
|
||||
assert(not bone[vertex_id], "duplicate vertex weight")
|
||||
bone[vertex_id] = float()
|
||||
local weight = float()
|
||||
if weight > 0 then
|
||||
-- Many exporters include unneeded zero weights
|
||||
bone[vertex_id] = weight
|
||||
end
|
||||
end
|
||||
return bone
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user