| 520 | } |
| 521 | |
| 522 | void ParticleEffect::ApplyModifiedParameters() |
| 523 | { |
| 524 | if (_parametersOverrides.IsEmpty()) |
| 525 | return; |
| 526 | PROFILE_MEM(Particles); |
| 527 | |
| 528 | // Parameters getter applies the parameters overrides |
| 529 | if (_parameters.IsEmpty()) |
| 530 | { |
| 531 | GetParameters(); |
| 532 | return; |
| 533 | } |
| 534 | |
| 535 | for (auto& e : _parametersOverrides) |
| 536 | { |
| 537 | const auto param = GetParameter(e.Track, e.Id); |
| 538 | if (param) |
| 539 | { |
| 540 | param->SetValue(e.Value); |
| 541 | } |
| 542 | else |
| 543 | { |
| 544 | LOG(Warning, "Failed to apply the particle effect parameter (id={0} from track={1})", e.Id, e.Track); |
| 545 | } |
| 546 | } |
| 547 | } |
| 548 | |
| 549 | void ParticleEffect::OnAssetChanged(Asset* asset, void* caller) |
| 550 | { |
nothing calls this directly
no test coverage detected