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)
|
v.setEnabled(true)
|
||||||
end
|
end
|
||||||
setLocalState()
|
setLocalState()
|
||||||
|
pmRefresh()
|
||||||
syncState()
|
syncState()
|
||||||
end
|
end
|
||||||
-- Initial configuration --
|
-- Initial configuration --
|
||||||
@ -1116,15 +1117,12 @@ function tick()
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
-- ugly code to make the avatar fully load in figura preview
|
-- Refresh tail armor state
|
||||||
armor()
|
armor()
|
||||||
if not refreshed then
|
-- Implements tail cooldown conditions
|
||||||
cooldown(1, "refreshAll")
|
|
||||||
PartsManager.refreshAll()
|
|
||||||
refreshed=true
|
|
||||||
end
|
|
||||||
updateTailVisibility()
|
updateTailVisibility()
|
||||||
|
|
||||||
|
-- Animation code resides in this function
|
||||||
animateTick()
|
animateTick()
|
||||||
|
|
||||||
-- Check for queued PartsManager refresh
|
-- Check for queued PartsManager refresh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user