1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-08 18:40:55 +03:00

0025955: Visualization, AIS_Shape::UnsetColor() - fix storing color in a local variable

Removed the color declaration overriding another variable.
This commit is contained in:
Pawel 2015-03-17 18:27:49 +01:00 committed by bugmaster
parent 936f43da8a
commit 4e2914a6a0

View 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);
}