mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
fix base:player_animator component
This commit is contained in:
parent
f172a45d39
commit
8dee7facf0
1 changed files with 1 additions and 1 deletions
|
|
@ -8,10 +8,10 @@ local itemid = 0
|
||||||
local itemIndex = rig:index("item")
|
local itemIndex = rig:index("item")
|
||||||
|
|
||||||
local function refresh_model(id)
|
local function refresh_model(id)
|
||||||
|
itemid = id
|
||||||
if id == 0 then
|
if id == 0 then
|
||||||
rig:set_model(itemIndex, "")
|
rig:set_model(itemIndex, "")
|
||||||
else
|
else
|
||||||
itemid = id
|
|
||||||
local scale = item_models.setup(itemid, rig, itemIndex)
|
local scale = item_models.setup(itemid, rig, itemIndex)
|
||||||
rig:set_matrix(itemIndex, mat4.scale(scale))
|
rig:set_matrix(itemIndex, mat4.scale(scale))
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue