Fem/Mesh: force update of shape nodes when changing the transparencies of a color plot

This commit is contained in:
wmayer
2022-04-01 16:40:34 +02:00
parent 5dff636cf8
commit d36c59b3dc
3 changed files with 21 additions and 1 deletions

View File

@@ -543,7 +543,10 @@ void ViewProviderFemPostObject::WriteColorData(bool ResetColorBarRange) {
m_material->diffuseColor.finishEditing();
m_material->transparency.finishEditing();
m_materialBinding->value = SoMaterialBinding::PER_VERTEX_INDEXED;
m_materialBinding->touch();
// In order to apply the transparency changes the shape nodes must be touched
m_faces->touch();
m_triangleStrips->touch();
}
void ViewProviderFemPostObject::WriteTransparency() {