Skip to content
Snippets Groups Projects
Commit 2346b1eb authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent fa87743e
Branches
Tags
No related merge requests found
...@@ -7,7 +7,7 @@ extern Context_T CTX; ...@@ -7,7 +7,7 @@ extern Context_T CTX;
GEntity::GEntity(GModel *m, int t) GEntity::GEntity(GModel *m, int t)
: _model(m), _tag(t), _visible(true), _flag(0), meshRep(0) : _model(m), _tag(t), _visible(true), _flag(0), meshRep(0)
{ {
_color = CTX.PACK_COLOR(0, 0, 255, 255); _color = CTX.PACK_COLOR(0, 0, 255, 0);
} }
GEntity::~GEntity() GEntity::~GEntity()
...@@ -21,7 +21,7 @@ bool GEntity::useColor() ...@@ -21,7 +21,7 @@ bool GEntity::useColor()
int g = CTX.UNPACK_GREEN(_color); int g = CTX.UNPACK_GREEN(_color);
int b = CTX.UNPACK_BLUE(_color); int b = CTX.UNPACK_BLUE(_color);
int a = CTX.UNPACK_ALPHA(_color); int a = CTX.UNPACK_ALPHA(_color);
if(r == 0 && g == 0 && b == 255 && a == 255) if(r == 0 && g == 0 && b == 255 && a == 0)
return false; return false;
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment