| 35 | } |
| 36 | |
| 37 | bool WodPlaceableRes::IsReady() |
| 38 | { |
| 39 | if( m_bIsReady ) |
| 40 | { |
| 41 | return true; |
| 42 | } |
| 43 | Vector3 myMin; |
| 44 | Vector3 myMax; |
| 45 | |
| 46 | BoundingBoxInitialize( myMin, myMax ); |
| 47 | Vector3 meshMin; |
| 48 | Vector3 meshMax; |
| 49 | |
| 50 | if( !m_visualModel->GetBoundingBox( meshMin, meshMax ) ) |
| 51 | { |
| 52 | return false; |
| 53 | } |
| 54 | |
| 55 | BoundingBoxUpdate( myMin, myMax, meshMin ); |
| 56 | BoundingBoxUpdate( myMin, myMax, meshMax ); |
| 57 | |
| 58 | m_minBounds.SetVector( &myMin ); |
| 59 | m_maxBounds.SetVector( &myMax ); |
| 60 | |
| 61 | m_bIsReady = true; |
| 62 | |
| 63 | return true; |
| 64 | } |
| 65 | |
| 66 | bool WodPlaceableRes::HasTransparency() |
| 67 | { |
no test coverage detected