0025955: Visualization, AIS_Shape::UnsetColor() - fix storing color in a local variable
[occt.git] / src / AIS / AIS_Shape.cxx
index b05772d..9026a2e 100644 (file)
@@ -614,7 +614,7 @@ void AIS_Shape::UnsetColor()
       Quantity_Color aColor = aDefaultMat.AmbientColor();
       if (myDrawer->HasLink())
       {
-        Quantity_Color aColor = myDrawer->Link()->ShadingAspect()->Color (myCurrentFacingModel);
+        aColor = myDrawer->Link()->ShadingAspect()->Color (myCurrentFacingModel);
       }
       mat.SetColor (aColor);
     }