Skip to content

Commit

Permalink
ofxGuiGroup: fix ofVec*f / glm::vec*
Browse files Browse the repository at this point in the history
Fixes #6058
  • Loading branch information
arturoc committed Jul 30, 2018
1 parent 23647c3 commit 668c62f
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions addons/ofxGui/src/ofxGuiGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,23 @@ ofxGuiGroup * ofxGuiGroup::setup(const ofParameterGroup & _parameters, const std
}else if(type == typeid(ofParameter <void> ).name()){
auto p = _parameters.getVoid(i);
add(p);
}else if(type == typeid(ofParameter <ofDefaultVec2> ).name()){
auto p = _parameters.getVec2f(i);
}else if(type == typeid(ofParameter <ofVec2f> ).name()){
auto p = _parameters.get<ofVec2f>(i);
add(p);
}else if(type == typeid(ofParameter <ofDefaultVec3> ).name()){
auto p = _parameters.getVec3f(i);
}else if(type == typeid(ofParameter <ofVec3f> ).name()){
auto p = _parameters.get<ofVec3f>(i);
add(p);
}else if(type == typeid(ofParameter <ofDefaultVec4> ).name()){
auto p = _parameters.getVec4f(i);
}else if(type == typeid(ofParameter <ofVec4f> ).name()){
auto p = _parameters.get<ofVec4f>(i);
add(p);
}else if(type == typeid(ofParameter <glm::vec2> ).name()){
auto p = _parameters.get<glm::vec2>(i);
add(p);
}else if(type == typeid(ofParameter <glm::vec3> ).name()){
auto p = _parameters.get<glm::vec3>(i);
add(p);
}else if(type == typeid(ofParameter <glm::vec4> ).name()){
auto p = _parameters.get<glm::vec4>(i);
add(p);
}else if(type == typeid(ofParameter <ofColor> ).name()){
auto p = _parameters.getColor(i);
Expand Down

0 comments on commit 668c62f

Please sign in to comment.