From 13fea20cdd6367348082b7fa57b00bfa6c6eb18a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tr=C3=B6ger?= Date: Sun, 3 May 2015 10:44:33 +0200 Subject: [PATCH] fix datum plane transparency one can not change the transparany type in the scene graph. Furthermore no normals are used, hence no normal binding is needed. --- src/Mod/PartDesign/Gui/ViewProviderDatum.cpp | 6 ------ src/Mod/PartDesign/Gui/ViewProviderDatumPlane.cpp | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Mod/PartDesign/Gui/ViewProviderDatum.cpp b/src/Mod/PartDesign/Gui/ViewProviderDatum.cpp index c0e5f5e0a..a3c25dd02 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderDatum.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderDatum.cpp @@ -97,12 +97,8 @@ void ViewProviderDatum::attach(App::DocumentObject *obj) hints->shapeType.setValue(SoShapeHints::UNKNOWN_SHAPE_TYPE); hints->vertexOrdering.setValue(SoShapeHints::COUNTERCLOCKWISE); SoMaterialBinding* bind = new SoMaterialBinding(); - SoTransparencyType* ttype = new SoTransparencyType(); - ttype->value.setValue(SoGLRenderAction::BLEND); SoDrawStyle* fstyle = new SoDrawStyle(); fstyle->style = SoDrawStyle::FILLED; - SoNormalBinding* normb = new SoNormalBinding(); - normb->value = SoNormalBinding::PER_VERTEX_INDEXED; SoBaseColor* color = new SoBaseColor(); color->rgb.setValue(0.9f, 0.9f, 0.3f); SoSeparator* sep = new SoSeparator(); @@ -111,9 +107,7 @@ void ViewProviderDatum::attach(App::DocumentObject *obj) sep->addChild(hints); sep->addChild(bind); - sep->addChild(ttype); sep->addChild(fstyle); - sep->addChild(normb); sep->addChild(color); sep->addChild(ps); sep->addChild(pShapeSep); diff --git a/src/Mod/PartDesign/Gui/ViewProviderDatumPlane.cpp b/src/Mod/PartDesign/Gui/ViewProviderDatumPlane.cpp index 7cd18c95f..4519e714d 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderDatumPlane.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderDatumPlane.cpp @@ -58,7 +58,7 @@ ViewProviderDatumPlane::ViewProviderDatumPlane() { SoMaterial* material = new SoMaterial(); material->diffuseColor.setValue(0.9f, 0.9f, 0.13f); - material->transparency.setValue(0.2f); + material->transparency.setValue(0.5f); pShapeSep->addChild(material); }