| 351 | } |
| 352 | |
| 353 | MaterialBase* SplineModel::GetMaterial(int32 entryIndex) |
| 354 | { |
| 355 | if (Model) |
| 356 | Model->WaitForLoaded(); |
| 357 | else |
| 358 | return nullptr; |
| 359 | CHECK_RETURN(entryIndex >= 0 && entryIndex < Entries.Count(), nullptr); |
| 360 | MaterialBase* material = Entries[entryIndex].Material.Get(); |
| 361 | if (!material) |
| 362 | { |
| 363 | material = Model->MaterialSlots[entryIndex].Material.Get(); |
| 364 | if (!material) |
| 365 | material = GPUDevice::Instance->GetDefaultDeformableMaterial(); |
| 366 | } |
| 367 | return material; |
| 368 | } |
| 369 | |
| 370 | ModelBase* SplineModel::GetModel() |
| 371 | { |
no test coverage detected