| 257 | } |
| 258 | |
| 259 | void TSShapeInstance::cloneMaterialList( const FeatureSet *features ) |
| 260 | { |
| 261 | if ( mOwnMaterialList ) |
| 262 | return; |
| 263 | |
| 264 | Material::sAllowTextureTargetAssignment = true; |
| 265 | mMaterialList = new TSMaterialList(mMaterialList); |
| 266 | initMaterialList( features ); |
| 267 | Material::sAllowTextureTargetAssignment = false; |
| 268 | |
| 269 | mOwnMaterialList = true; |
| 270 | } |
| 271 | |
| 272 | void TSShapeInstance::initMaterialList( const FeatureSet *features ) |
| 273 | { |
no outgoing calls
no test coverage detected