Skip to content

Commit 1e77cec

Browse files
authored
ofxAssimpModelLoader : unused col warning fix (#7445)
1 parent 7614d93 commit 1e77cec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/ofxAssimpModelLoader/src/ofxAssimpModelLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ void ofxAssimpModelLoader::loadGLResources(){
320320

321321
if(AI_SUCCESS == aiGetMaterialColor(mtl, AI_MATKEY_COLOR_AMBIENT, &tcolor)){
322322
auto col = aiColorToOfColor(tcolor);
323-
meshHelper.material.setAmbientColor(aiColorToOfColor(tcolor));
323+
meshHelper.material.setAmbientColor(col);
324324
}
325325

326326
if(AI_SUCCESS == aiGetMaterialColor(mtl, AI_MATKEY_COLOR_EMISSIVE, &tcolor)){

0 commit comments

Comments
 (0)