projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
936f43d
)
0025955: Visualization, AIS_Shape::UnsetColor() - fix storing color in a local variable
author
Pawel
<pawel-kowalski@wp.pl>
Tue, 17 Mar 2015 17:27:49 +0000
(18:27 +0100)
committer
bugmaster
<bugmaster@opencascade.com>
Thu, 19 Mar 2015 14:08:24 +0000
(17:08 +0300)
Removed the color declaration overriding another variable.
src/AIS/AIS_Shape.cxx
patch
|
blob
|
blame
|
history
diff --git
a/src/AIS/AIS_Shape.cxx
b/src/AIS/AIS_Shape.cxx
index
b05772d
..
9026a2e
100644
(file)
--- 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);
}