Skip to content

Commit 6add96b

Browse files
authored
ofParameter: reinit mechanism: use setMethod() instead of set() (#7564)
#changelog #macos
1 parent 42e5dd2 commit 6add96b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libs/openFrameworks/types/ofParameter.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,8 @@ class ofParameter: public ofAbstractParameter{
603603
class Value{
604604
public:
605605
Value()
606-
:min(of::priv::TypeInfo<ParameterType>::min())
606+
:init(of::priv::TypeInfo<ParameterType>::min())
607+
,min(of::priv::TypeInfo<ParameterType>::min())
607608
,max(of::priv::TypeInfo<ParameterType>::max())
608609
,bInNotify(false)
609610
,serializable(true){}
@@ -830,7 +831,7 @@ ParameterType ofParameter<ParameterType>::getInit() const {
830831

831832
template<typename ParameterType>
832833
void ofParameter<ParameterType>::reInit() {
833-
set(obj->init);
834+
setMethod(obj->init);
834835
}
835836

836837
template<typename ParameterType>

0 commit comments

Comments
 (0)