diff --git a/src/AIS/AIS_Shape.cxx b/src/AIS/AIS_Shape.cxx index 746db59025..5fcb6fa631 100644 --- a/src/AIS/AIS_Shape.cxx +++ b/src/AIS/AIS_Shape.cxx @@ -359,7 +359,7 @@ void AIS_Shape::Color (Quantity_Color& theColor) const { if (const Handle(Prs3d_ShadingAspect)& aShading = myDrawer->ShadingAspect()) { - theColor = myDrawer->ShadingAspect()->Color(myCurrentFacingModel); + theColor = aShading->Color(myCurrentFacingModel); } }