Cleanup surface_triangles when done resetting
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 21s
All checks were successful
Build and Publish WASM version of demo / Build-And-Deploy (push) Successful in 21s
This commit is contained in:
parent
ca5afe14c3
commit
24c3ade5ee
1 changed files with 1 additions and 0 deletions
|
@ -246,6 +246,7 @@ post_check_click:
|
||||||
surface_reset_anim_timer += dt;
|
surface_reset_anim_timer += dt;
|
||||||
if (surface_reset_anim_timer > SURFACE_RESET_TIME) {
|
if (surface_reset_anim_timer > SURFACE_RESET_TIME) {
|
||||||
flags.reset(0);
|
flags.reset(0);
|
||||||
|
surface_triangles.reset();
|
||||||
} else {
|
} else {
|
||||||
for (auto &tri : *surface_triangles) {
|
for (auto &tri : *surface_triangles) {
|
||||||
tri.update(dt);
|
tri.update(dt);
|
||||||
|
|
Loading…
Reference in a new issue