From f88f6f14028e802cd813fbec57426ec6afd0b12d Mon Sep 17 00:00:00 2001 From: Owen Green Date: Fri, 13 Sep 2024 15:55:07 +0100 Subject: [PATCH] For `load` and `read` only update params on success :grimace: --- source/include/FluidMaxWrapper.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/include/FluidMaxWrapper.hpp b/source/include/FluidMaxWrapper.hpp index f775bfd5..100cc79b 100644 --- a/source/include/FluidMaxWrapper.hpp +++ b/source/include/FluidMaxWrapper.hpp @@ -2111,7 +2111,8 @@ class FluidMaxWrapper updateParams(FluidMaxWrapper* x, MessageResult const& v) { - x->mParams.fromTuple(typename ParamSetType::ValueTuple(v.value())); + if(v.ok()) + x->mParams.fromTuple(typename ParamSetType::ValueTuple(v.value())); } static void updateParams(FluidMaxWrapper*, MessageResult) {}