MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / setMeshLib

Method setMeshLib

src/components/AnimHandler.cpp:36–52  ·  view source on GitHub ↗

* @brief Sets the mesh-lib this operates on. Does a copy inside, so the given object can be deleted. */

Source from the content-addressed store, hash-verified

34 * @brief Sets the mesh-lib this operates on. Does a copy inside, so the given object can be deleted.
35 */
36void AnimHandler::setMeshLib(const ZenLoad::zCModelMeshLib& meshLib)
37{
38 m_MeshLib = meshLib;
39
40 m_NodeTransforms.resize(m_MeshLib.getNodes().size());
41 m_ObjectSpaceNodeTransforms.resize(m_MeshLib.getNodes().size());
42
43 for (auto& m : m_ObjectSpaceNodeTransforms)
44 m = Math::Matrix::CreateIdentity();
45
46 for (auto& m : m_NodeTransforms)
47 m = Math::Matrix::CreateIdentity();
48
49 setBindPose(true);
50
51 m_SpeedMultiplier = 1.0f;
52}
53
54bool AnimHandler::addAnimation(const std::string& name)
55{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected