| 1316 | } |
| 1317 | |
| 1318 | MaterialBase* AnimatedModel::GetMaterial(int32 entryIndex) |
| 1319 | { |
| 1320 | if (SkinnedModel) |
| 1321 | SkinnedModel->WaitForLoaded(); |
| 1322 | else |
| 1323 | return nullptr; |
| 1324 | CHECK_RETURN(entryIndex >= 0 && entryIndex < Entries.Count(), nullptr); |
| 1325 | MaterialBase* material = Entries[entryIndex].Material.Get(); |
| 1326 | if (!material) |
| 1327 | { |
| 1328 | material = SkinnedModel->MaterialSlots[entryIndex].Material.Get(); |
| 1329 | if (!material) |
| 1330 | material = GPUDevice::Instance->GetDefaultMaterial(); |
| 1331 | } |
| 1332 | return material; |
| 1333 | } |
| 1334 | |
| 1335 | ModelBase* AnimatedModel::GetModel() |
| 1336 | { |
nothing calls this directly
no test coverage detected