mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
- avoiding color mask updating if edit quality mapper cannot be applied cause mesh has not per vertex quality attribute
This commit is contained in:
parent
75460693d6
commit
d18c0c0aee
@ -102,9 +102,12 @@ void QualityMapperPlugin::EndEdit(MeshModel & m, GLArea *,MLSceneGLSharedDataCon
|
||||
|
||||
void QualityMapperPlugin::suggestedRenderingData(MeshModel & m, MLRenderingData& dt)
|
||||
{
|
||||
for (MLRenderingData::PRIMITIVE_MODALITY pr = MLRenderingData::PRIMITIVE_MODALITY(0); pr < MLRenderingData::PR_ARITY; pr = MLRenderingData::next(pr))
|
||||
dt.set(pr, MLRenderingData::ATT_NAMES::ATT_VERTCOLOR, true);
|
||||
m.updateDataMask(MeshModel::MM_VERTCOLOR);
|
||||
if (m.hasDataMask(MeshModel::MM_VERTQUALITY))
|
||||
{
|
||||
for (MLRenderingData::PRIMITIVE_MODALITY pr = MLRenderingData::PRIMITIVE_MODALITY(0); pr < MLRenderingData::PR_ARITY; pr = MLRenderingData::next(pr))
|
||||
dt.set(pr, MLRenderingData::ATT_NAMES::ATT_VERTCOLOR, true);
|
||||
m.updateDataMask(MeshModel::MM_VERTCOLOR);
|
||||
}
|
||||
}
|
||||
|
||||
//void QualityMapperPlugin::Decorate(MeshModel&, GLArea*)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user