diff --git a/toonz/sources/include/tparamcontainer.h b/toonz/sources/include/tparamcontainer.h index 899a4c2..1cfd3a4 100644 --- a/toonz/sources/include/tparamcontainer.h +++ b/toonz/sources/include/tparamcontainer.h @@ -65,7 +65,7 @@ class TParamVarT final : public TParamVar { public: TParamVarT(std::string name, T *var = nullptr, TParamP pluginVar = 0, bool hidden = false, bool obsolete = false) - : TParamVar(name, hidden), m_var(var), m_pluginVar(pluginVar) {} + : TParamVar(name, hidden, obsolete), m_var(var), m_pluginVar(pluginVar) {} TParamVarT() = delete; void setParam(TParam *param) { if (m_var) @@ -80,7 +80,8 @@ public: return m_pluginVar.getPointer(); } TParamVar *clone() const { - return new TParamVarT(getName(), m_var, m_pluginVar, isHidden()); + return new TParamVarT(getName(), m_var, m_pluginVar, isHidden(), + isObsolete()); } };