| 201 | } |
| 202 | |
| 203 | bool 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 | // --------------------------------------------------------------- |
| 227 | bool Tr2SkinnedModel::OnModified( Be::Var* value ) |
nothing calls this directly
no test coverage detected