Skip to content

Commit

Permalink
ofParameter: reinit mechanism: use setMethod() instead of set() (#7564)
Browse files Browse the repository at this point in the history
#changelog #macos
  • Loading branch information
artificiel committed Aug 17, 2023
1 parent 42e5dd2 commit 6add96b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/openFrameworks/types/ofParameter.h
Expand Up @@ -603,7 +603,8 @@ class ofParameter: public ofAbstractParameter{
class Value{
public:
Value()
:min(of::priv::TypeInfo<ParameterType>::min())
:init(of::priv::TypeInfo<ParameterType>::min())
,min(of::priv::TypeInfo<ParameterType>::min())
,max(of::priv::TypeInfo<ParameterType>::max())
,bInNotify(false)
,serializable(true){}
Expand Down Expand Up @@ -830,7 +831,7 @@ ParameterType ofParameter<ParameterType>::getInit() const {

template<typename ParameterType>
void ofParameter<ParameterType>::reInit() {
set(obj->init);
setMethod(obj->init);
}

template<typename ParameterType>
Expand Down

0 comments on commit 6add96b

Please sign in to comment.