1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0027727: Visualization, Graphic3d_ArrayOfPrimitives::SetVertexColor() - define opaque color for RGB input

This commit is contained in:
kgv
2016-07-29 12:45:41 +03:00
committed by bugmaster
parent 990ab183dd
commit 30c1ef75af
2 changed files with 1 additions and 2 deletions

View File

@@ -175,7 +175,7 @@ inline void Graphic3d_ArrayOfPrimitives::SetVertexColor (const Standard_Integer
{
Graphic3d_Vec4ub aColor (Standard_Byte(theR * 255.0),
Standard_Byte(theG * 255.0),
Standard_Byte(theB * 255.0), 0);
Standard_Byte(theB * 255.0), 255);
SetVertexColor (theIndex, *reinterpret_cast<Standard_Integer*>(&aColor));
}
myAttribs->NbElements = Max (theIndex, myAttribs->NbElements);