mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41: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 function refresh_model(id)
|
||||
itemid = id
|
||||
if id == 0 then
|
||||
rig:set_model(itemIndex, "")
|
||||
else
|
||||
itemid = id
|
||||
local scale = item_models.setup(itemid, rig, itemIndex)
|
||||
rig:set_matrix(itemIndex, mat4.scale(scale))
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue