| 325 | } |
| 326 | |
| 327 | bool MaterialSystem::hasMaterial(const MaterialID materialID) const |
| 328 | { |
| 329 | // The materials are sequentially indexed without gaps for now. Check if the ID is within range. |
| 330 | return materialID.isValid() ? materialID.get() < mMaterials.size() : false; |
| 331 | } |
| 332 | |
| 333 | const ref<Material>& MaterialSystem::getMaterial(const MaterialID materialID) const |
| 334 | { |