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

Method GetFileInfo

trinity/Tr2GStateAnimation.cpp:221–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221granny_file_info* Tr2GStateAnimation::GetFileInfo() const
222{
223 if( m_grannyRes )
224 {
225 // when using a standalone granny file, it's supposed to have an animation
226 // track, so complain if it doesn't.
227 granny_file_info* const fi = GrannyGetFileInfo( m_grannyRes->GetGrannyFile() );
228 if( !fi )
229 {
230 CCP_LOGERR( "'%s' is not a valid Granny file", m_resPath.c_str() );
231 }
232 return fi;
233 }
234
235 // when using a shared geometryRes, there may not be an animation, or the
236 // granny file isn't loaded yet. Silently fail.
237 if( m_geometryRes )
238 {
239 return m_geometryRes->GetGrannyInfo();
240 }
241
242 return nullptr;
243}
244
245
246void Tr2GStateAnimation::RebuildCachedData( BlueAsyncRes* p )

Callers

nothing calls this directly

Calls 1

GetGrannyInfoMethod · 0.80

Tested by

no test coverage detected