ParticleCommon: Fix IESampleAndHold element ordering

This commit is contained in:
Luke Street 2020-09-24 03:17:17 -04:00
parent 6e3d94483c
commit 8b597112be
2 changed files with 2 additions and 2 deletions

View File

@ -917,9 +917,9 @@ struct IEMultiply : IIntElement {
struct IESampleAndHold : IIntElement {
AT_DECL_DNA_YAMLV_NO_TYPE
IntElementFactory val;
IntElementFactory waitMin;
IntElementFactory waitMax;
IntElementFactory val;
std::string_view ClassID() const override { return "SPAH"sv; }
};

View File

@ -662,7 +662,7 @@ std::unique_ptr<CIntElement> CParticleDataFactory::GetIntElement(CInputStream& i
auto a = GetIntElement(in);
auto b = GetIntElement(in);
auto c = GetIntElement(in);
return std::make_unique<CIESampleAndHold>(std::move(a), std::move(b), std::move(c));
return std::make_unique<CIESampleAndHold>(std::move(c), std::move(a), std::move(b));
}
case SBIG('RAND'): {
auto a = GetIntElement(in);