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

Method SetSharedGeometryRes

trinity/Tr2GrannyAnimation.cpp:279–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void Tr2GrannyAnimation::SetSharedGeometryRes( TriGeometryResPtr res )
280{
281 if( res == m_geometryRes )
282 {
283 return;
284 }
285 if( m_geometryRes )
286 {
287 m_geometryRes->RemoveNotifyTarget( this );
288 }
289 Cleanup();
290 m_geometryRes = res;
291 if( m_geometryRes )
292 {
293 m_geometryRes->AddNotifyTarget( this );
294 }
295 m_resPath = "";
296}
297
298TriGeometryRes* Tr2GrannyAnimation::GetSharedGeometryRes() const
299{

Callers 2

PrepareForAnimationMethod · 0.45
InitializeAnimationMethod · 0.45

Calls 2

RemoveNotifyTargetMethod · 0.80
AddNotifyTargetMethod · 0.80

Tested by

no test coverage detected