- fixed small bug on vertex color rendering parameter

This commit is contained in:
Guido Ranzuglia granzuglia 2016-09-24 15:25:05 +00:00
parent 86a0c6301f
commit ebb0ce8080

View File

@ -678,6 +678,11 @@ bool MLRenderingPerVertexColorAction::isRenderingDataEnabled( const MLRenderingD
return MLRenderingAction::isRenderingDataEnabled(_pm,MLRenderingData::ATT_NAMES::ATT_VERTCOLOR,rd);
}
bool MLRenderingPerVertexColorAction::isVisibleConditionValid(MeshModel* mm) const
{
return mm->hasDataMask(MeshModel::MM_VERTCOLOR);
}
MLRenderingPerFaceColorAction::MLRenderingPerFaceColorAction(QObject* parent)
:MLRenderingAction(parent)
{