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
|
|
@ -260,6 +260,14 @@ static int push_properties_tables(
|
|||
return 1;
|
||||
}
|
||||
|
||||
void scripting::on_assets_loading() {
|
||||
lua::call_internal(lua::get_main_state(), "backup_and_clear_animation");
|
||||
}
|
||||
|
||||
void scripting::revert_assets_loading() {
|
||||
lua::call_internal(lua::get_main_state(), "restore_animation_backup");
|
||||
}
|
||||
|
||||
void scripting::on_content_load(Content* content) {
|
||||
scripting::content = content;
|
||||
scripting::indices = content->getIndices();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue