diff --git a/src/AIS/AIS_Shape.cxx b/src/AIS/AIS_Shape.cxx index b05772dca1..9026a2e659 100644 --- a/src/AIS/AIS_Shape.cxx +++ b/src/AIS/AIS_Shape.cxx @@ -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); }