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

Method Initialize

trinity/Tr2SkinnedModel.cpp:203–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203bool Tr2SkinnedModel::Initialize()
204{
205 m_skeletonIx = NO_SKELETON;
206 m_areAllMeshesBound = false;
207
208 if( m_geometryResPath.empty() )
209 {
210 return true;
211 }
212
213 if( m_geometryRes )
214 {
215 m_geometryRes->RemoveNotifyTarget( this );
216 m_geometryRes.Unlock();
217 }
218 BeResMan->GetResource( m_geometryResPath.c_str(), "", m_geometryRes );
219 if( m_geometryRes )
220 {
221 m_geometryRes->AddNotifyTarget( this );
222 }
223 return true;
224}
225
226// ---------------------------------------------------------------
227bool Tr2SkinnedModel::OnModified( Be::Var* value )

Callers

nothing calls this directly

Calls 5

emptyMethod · 0.80
RemoveNotifyTargetMethod · 0.80
AddNotifyTargetMethod · 0.80
UnlockMethod · 0.45
GetResourceMethod · 0.45

Tested by

no test coverage detected