From: Pawel Date: Tue, 17 Mar 2015 17:27:49 +0000 (+0100) Subject: 0025955: Visualization, AIS_Shape::UnsetColor() - fix storing color in a local variable X-Git-Tag: V6_9_0_beta~33 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=4e2914a6a03e2a8cbd2e5da6f3951e22a9295f26;p=occt-copy.git 0025955: Visualization, AIS_Shape::UnsetColor() - fix storing color in a local variable Removed the color declaration overriding another variable. --- 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); }