mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +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:
parent
936f43da8a
commit
4e2914a6a0
@ -614,7 +614,7 @@ void AIS_Shape::UnsetColor()
|
|||||||
Quantity_Color aColor = aDefaultMat.AmbientColor();
|
Quantity_Color aColor = aDefaultMat.AmbientColor();
|
||||||
if (myDrawer->HasLink())
|
if (myDrawer->HasLink())
|
||||||
{
|
{
|
||||||
Quantity_Color aColor = myDrawer->Link()->ShadingAspect()->Color (myCurrentFacingModel);
|
aColor = myDrawer->Link()->ShadingAspect()->Color (myCurrentFacingModel);
|
||||||
}
|
}
|
||||||
mat.SetColor (aColor);
|
mat.SetColor (aColor);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user