Clear animation data when appearance is updated
This commit is contained in:
parent
2c1d9e1330
commit
4e5ae2a6ab
|
@ -71,6 +71,10 @@ function player_api.set_model(player, model_name)
|
|||
|
||||
local model = models[model_name]
|
||||
if model then
|
||||
if (model.animations) then
|
||||
player_data.animation = nil
|
||||
player_data.animation_speed = nil
|
||||
}
|
||||
player:set_properties({
|
||||
mesh = model_name,
|
||||
textures = player_data.textures or model.textures,
|
||||
|
|
Loading…
Reference in New Issue