Clean up code for initial PartsManager refresh
This commit is contained in:
parent
f178094762
commit
290af757e9
10
script.lua
10
script.lua
@ -1063,6 +1063,7 @@ function player_init()
|
||||
v.setEnabled(true)
|
||||
end
|
||||
setLocalState()
|
||||
pmRefresh()
|
||||
syncState()
|
||||
end
|
||||
-- Initial configuration --
|
||||
@ -1116,15 +1117,12 @@ function tick()
|
||||
end
|
||||
|
||||
|
||||
-- ugly code to make the avatar fully load in figura preview
|
||||
-- Refresh tail armor state
|
||||
armor()
|
||||
if not refreshed then
|
||||
cooldown(1, "refreshAll")
|
||||
PartsManager.refreshAll()
|
||||
refreshed=true
|
||||
end
|
||||
-- Implements tail cooldown conditions
|
||||
updateTailVisibility()
|
||||
|
||||
-- Animation code resides in this function
|
||||
animateTick()
|
||||
|
||||
-- Check for queued PartsManager refresh
|
||||
|
Loading…
x
Reference in New Issue
Block a user