Used in the materialEditor. This flushes the material preview object so it can be reloaded easily.
| 351 | |
| 352 | // Used in the materialEditor. This flushes the material preview object so it can be reloaded easily. |
| 353 | void MaterialManager::flushInstance( BaseMaterialDefinition *target ) |
| 354 | { |
| 355 | Vector<BaseMatInstance*>::iterator iter = mMatInstanceList.begin(); |
| 356 | while ( iter != mMatInstanceList.end() ) |
| 357 | { |
| 358 | if ( (*iter)->getMaterial() == target ) |
| 359 | { |
| 360 | (*iter)->deleteAllHooks(); |
| 361 | return; |
| 362 | } |
| 363 | iter++; |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | void MaterialManager::reInitInstance( BaseMaterialDefinition *target ) |
| 368 | { |
no test coverage detected