fix loaded tracks cache does not reset on assets reset

This commit is contained in:
MihailRis 2026-09-03 21:44:14 +03:00
parent bbdf31fc19
commit 8422349e45
5 changed files with 42 additions and 14 deletions

View file

@ -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();