Hi folks,
having a time trying to get simple material parameters. Would like to get the tick box next to the main options in the material window, like Color and Reflection.
I've been around in circles with the following:
BaseTag *tag = obj->GetFirstTag();
BaseMaterial *texture = (BaseMaterial*)tag;
if(texture->GetParameter(DescID(MATERIAL_USE_COLOR),data,DESCFLAGS_GET_0) && data == true)
{
// this never runs
}
A few assumptions with the above, but you get the idea. Where am I going wrong here?
WP.