From: vsv Date: Fri, 28 Aug 2015 09:50:12 +0000 (+0300) Subject: Define transparency value for object which is still not added to Context X-Git-Tag: V_1.4.0_beta4~214 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8f457641221c80bde647d91dd034b91c4c0c6a38;p=modules%2Fshaper.git Define transparency value for object which is still not added to Context --- diff --git a/src/GeomAPI/GeomAPI_AISObject.cpp b/src/GeomAPI/GeomAPI_AISObject.cpp index b8b5a7b22..30879add3 100644 --- a/src/GeomAPI/GeomAPI_AISObject.cpp +++ b/src/GeomAPI/GeomAPI_AISObject.cpp @@ -411,6 +411,8 @@ bool GeomAPI_AISObject::setTransparensy(double theVal) isChanged = aCurrentValue != theVal; if (isChanged) aContext->SetTransparency(anAIS, theVal, false); + } else { + anAIS->SetTransparency(theVal); } } return isChanged;