| 423 | } |
| 424 | |
| 425 | void MeshBase::SetMaterialSlotIndex(int32 value) |
| 426 | { |
| 427 | if (value < 0 || value >= _model->MaterialSlots.Count()) |
| 428 | { |
| 429 | LOG(Warning, "Cannot set mesh material slot to {0} while model has {1} slots.", value, _model->MaterialSlots.Count()); |
| 430 | return; |
| 431 | } |
| 432 | _materialSlotIndex = value; |
| 433 | } |
| 434 | |
| 435 | void MeshBase::SetBounds(const BoundingBox& box) |
| 436 | { |
no test coverage detected