| 110 | } |
| 111 | |
| 112 | void TSForestItemData::_loadShape() |
| 113 | { |
| 114 | if (mShapeAsset.isNull()) return; |
| 115 | |
| 116 | _setShape(mShapeAssetId); |
| 117 | |
| 118 | if ( !(bool)mShape ) |
| 119 | return; |
| 120 | |
| 121 | if ( mIsClientObject && |
| 122 | !mShape->preloadMaterialList(mShapeAsset->getShapeFilePath()) ) |
| 123 | return; |
| 124 | |
| 125 | // Lets add an autobillboard detail if don't have one. |
| 126 | //_checkLastDetail(); |
| 127 | |
| 128 | _updateCollisionDetails(); |
| 129 | } |
| 130 | |
| 131 | TSShapeInstance* TSForestItemData::_getShapeInstance() const |
| 132 | { |
nothing calls this directly
no test coverage detected