| 778 | } |
| 779 | |
| 780 | void SkinnedModel::SetupMaterialSlots(int32 slotsCount) |
| 781 | { |
| 782 | PROFILE_MEM(GraphicsMeshes); |
| 783 | ModelBase::SetupMaterialSlots(slotsCount); |
| 784 | |
| 785 | // Adjust meshes indices for slots |
| 786 | for (int32 lodIndex = 0; lodIndex < LODs.Count(); lodIndex++) |
| 787 | { |
| 788 | for (int32 meshIndex = 0; meshIndex < LODs[lodIndex].Meshes.Count(); meshIndex++) |
| 789 | { |
| 790 | auto& mesh = LODs[lodIndex].Meshes[meshIndex]; |
| 791 | if (mesh.GetMaterialSlotIndex() >= slotsCount) |
| 792 | mesh.SetMaterialSlotIndex(slotsCount - 1); |
| 793 | } |
| 794 | } |
| 795 | } |
| 796 | |
| 797 | int32 SkinnedModel::GetLODsCount() const |
| 798 | { |
nothing calls this directly
no test coverage detected