Skip to content

Commit

Permalink
fix autosize initialisation order
Browse files Browse the repository at this point in the history
  • Loading branch information
tremblap committed Apr 12, 2024
1 parent 0c7c2d6 commit c001686
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions include/FluidPDWrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -978,10 +978,10 @@ class FluidPDWrapper : public impl::FluidPDBase<FluidPDWrapper<Client>,
}

FluidPDWrapper(t_symbol*, int ac, t_atom* av)
: mListSize{32}, mDumpOutlet{nullptr},
: mListSize{32}, mDumpOutlet{nullptr}, mAutosize{true},
mParams(Client::getParameterDescriptors(), FluidDefaultAllocator()),
mParamSnapshot(mParams.toTuple()), mClient{initParamsFromArgs(ac, av),
FluidContext()}, mAutosize{true}, mCanvas{canvas_getcurrent()}
mParamSnapshot(mParams.toTuple()), mClient{initParamsFromArgs(ac, av),
FluidContext()}, mCanvas{canvas_getcurrent()}
{
t_object* pdObject = impl::PDBase::getPDObject();

Expand Down Expand Up @@ -1216,8 +1216,7 @@ class FluidPDWrapper : public impl::FluidPDBase<FluidPDWrapper<Client>,
mParams.template forEachParam<MatchName>(s->s_name + 1, matched);
if (!strcmp(s->s_name + 1, "warnings")) matched = true;

if (!strcmp(s->s_name + 1, "autosize"))
matched = true;
if (!strcmp(s->s_name + 1, "autosize")) matched = true;

if (isNonRealTime<Client>::value && !strcmp(s->s_name + 1, "blocking"))
matched = true;
Expand Down Expand Up @@ -2001,10 +2000,10 @@ class FluidPDWrapper : public impl::FluidPDBase<FluidPDWrapper<Client>,
std::deque<Result> mUserMessageQueue;
t_outlet* mDumpOutlet;
bool mVerbose;
bool mAutosize;
ParamSetType mParams;
ParamValues mParamSnapshot;
Client mClient;
bool mAutosize;

FluidTensor<double, 2> mInputListData;
std::vector<FluidTensorView<double, 1>> mInputListViews;
Expand Down

0 comments on commit c001686

Please sign in to comment.