MCPcopy Create free account
hub / github.com/carbonengine/trinity / InitializeAnimation

Method InitializeAnimation

trinity/Eve/SpaceObject/Children/EveChildMesh.cpp:217–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void EveChildMesh::InitializeAnimation()
218{
219 if( m_animationUpdater && m_animationUpdater->GetResPath().empty() )
220 {
221 if( m_mesh )
222 {
223 if( auto geometry = m_mesh->GetGeometryResource() )
224 {
225 m_animationUpdater->SetUseMeshBinding( true );
226 m_animationUpdater->SetSharedGeometryRes( geometry );
227 return;
228 }
229 }
230 m_animationUpdater->SetSharedGeometryRes( nullptr );
231 }
232}
233
234// --------------------------------------------------------------------------------
235// Description:

Callers

nothing calls this directly

Calls 4

emptyMethod · 0.80
GetGeometryResourceMethod · 0.80
GetResPathMethod · 0.45
SetSharedGeometryResMethod · 0.45

Tested by

no test coverage detected