]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Define transparency value for object which is still not added to Context
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 28 Aug 2015 09:50:12 +0000 (12:50 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 28 Aug 2015 09:50:30 +0000 (12:50 +0300)
src/GeomAPI/GeomAPI_AISObject.cpp

index b8b5a7b2252bbbf4b6a4736f9ebf9ccadf371144..30879add3d8743dd85afcbcfbe43b979a5ef439d 100644 (file)
@@ -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;