Reset mesh animation state before recalculating normals (#90)

This commit is contained in:
x2048
2022-01-02 20:41:03 +01:00
committed by GitHub
parent 52e03a8485
commit 2fec5e5dd3
4 changed files with 30 additions and 0 deletions

View File

@ -116,6 +116,9 @@ namespace scene
//! Refreshes vertex data cached in joints such as positions and normals
virtual void refreshJointCache() _IRR_OVERRIDE_;
//! Moves the mesh into static position.
virtual void resetAnimation() _IRR_OVERRIDE_;
//Interface for the mesh loaders (finalize should lock these functions, and they should have some prefix like loader_
//these functions will use the needed arrays, set values, etc to help the loaders