From 8f457641221c80bde647d91dd034b91c4c0c6a38 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 28 Aug 2015 12:50:12 +0300 Subject: [PATCH] Define transparency value for object which is still not added to Context --- src/GeomAPI/GeomAPI_AISObject.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.2