fix incorrect default for material::get with aiColor3D
parent
8937248f7c
commit
5d3f3281f4
|
@ -211,6 +211,7 @@ AI_FORCE_INLINE aiReturn aiMaterial::Get(const char* pKey,unsigned int type,
|
||||||
unsigned int idx,aiColor3D& pOut) const {
|
unsigned int idx,aiColor3D& pOut) const {
|
||||||
aiColor4D c;
|
aiColor4D c;
|
||||||
const aiReturn ret = aiGetMaterialColor(this,pKey,type,idx,&c);
|
const aiReturn ret = aiGetMaterialColor(this,pKey,type,idx,&c);
|
||||||
|
if (ret == aiReturn_SUCCESS)
|
||||||
pOut = aiColor3D(c.r,c.g,c.b);
|
pOut = aiColor3D(c.r,c.g,c.b);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue