From 4e2914a6a03e2a8cbd2e5da6f3951e22a9295f26 Mon Sep 17 00:00:00 2001 From: Pawel Date: Tue, 17 Mar 2015 18:27:49 +0100 Subject: [PATCH] 0025955: Visualization, AIS_Shape::UnsetColor() - fix storing color in a local variable Removed the color declaration overriding another variable. --- src/AIS/AIS_Shape.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }