fix base:player_animator component

This commit is contained in:
MihailRis 2024-07-24 22:07:55 +03:00
parent f172a45d39
commit 8dee7facf0

View File

@ -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