From ebb0ce80809e92209ac3e6aeb55a427be6c5cc32 Mon Sep 17 00:00:00 2001 From: Guido Ranzuglia granzuglia Date: Sat, 24 Sep 2016 15:25:05 +0000 Subject: [PATCH] - fixed small bug on vertex color rendering parameter --- src/meshlab/ml_rendering_actions.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/meshlab/ml_rendering_actions.cpp b/src/meshlab/ml_rendering_actions.cpp index 050d1029a..60af5f078 100644 --- a/src/meshlab/ml_rendering_actions.cpp +++ b/src/meshlab/ml_rendering_actions.cpp @@ -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) {