mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix loaded tracks cache does not reset on assets reset
This commit is contained in:
parent
bbdf31fc19
commit
8422349e45
5 changed files with 42 additions and 14 deletions
|
|
@ -208,6 +208,7 @@ function this.compile_track(raw_track, track_name)
|
|||
end
|
||||
|
||||
local loaded_tracks = {}
|
||||
local backup_tracks = {}
|
||||
|
||||
function internals.store_animation(name, track)
|
||||
loaded_tracks[name] = track
|
||||
|
|
@ -236,8 +237,16 @@ function internals.on_animation_frame()
|
|||
end
|
||||
end
|
||||
|
||||
function internals.stop_all_actions()
|
||||
function internals.stop_animation_actions()
|
||||
running_actions = {}
|
||||
end
|
||||
|
||||
function internals.backup_and_clear_animation()
|
||||
loaded_tracks, backup_tracks = backup_tracks, {}
|
||||
end
|
||||
|
||||
function internals.restore_animation_backup()
|
||||
loaded_tracks, backup_tracks = backup_tracks, {}
|
||||
end
|
||||
|
||||
return this
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ gui_util.__reset_local = nil
|
|||
stdcomp.reset = nil
|
||||
|
||||
function internals.on_world_quit()
|
||||
internals.stop_all_actions()
|
||||
internals.stop_animation_actions()
|
||||
__rules.clear()
|
||||
__gui_util_reset_local()
|
||||
__stdcomp_reset()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue