| 242 | } |
| 243 | |
| 244 | bool EveSpaceObject2::Initialize() |
| 245 | { |
| 246 | m_allowLodSelection = true; |
| 247 | if( m_mesh ) |
| 248 | { |
| 249 | PrepareForAnimation(); |
| 250 | } |
| 251 | |
| 252 | for( auto& controller : m_controllers ) |
| 253 | { |
| 254 | if( !controller->IsLinked() ) |
| 255 | { |
| 256 | controller->Link( *GetRawRoot() ); |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | for( uint32_t i = 0; i < m_decals.size(); i++ ) |
| 261 | { |
| 262 | m_decals[i]->SetPriority( i ); |
| 263 | } |
| 264 | |
| 265 | if( !m_audioGeometry ) |
| 266 | { |
| 267 | BeClasses->CreateInstanceFromName( "AudGeometry", BlueInterfaceIID<ITr2AudGeometry>(), reinterpret_cast<void**>( &m_audioGeometry.p ) ); |
| 268 | } |
| 269 | |
| 270 | return true; |
| 271 | } |
| 272 | |
| 273 | void EveSpaceObject2::OnListModified( long event, ssize_t key, ssize_t key2, IRoot* value, const IList* list ) |
| 274 | { |
no test coverage detected