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