forked from bartvdbraak/blender
Material color was always overriding OBCOL for blender text.
This commit is contained in:
parent
f445dfbfb6
commit
9b69c56917
@ -133,7 +133,12 @@ void BL_RenderText(int mode,const char* textstr,int textlen,struct MTFace* tface
|
|||||||
characters = 0;
|
characters = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* When OBCOL flag is on the color is set in IndexPrimitives_3DText */
|
||||||
|
if (tface->mode & TF_OBCOL) { /* Color has been set */
|
||||||
|
col= NULL;
|
||||||
|
} else {
|
||||||
if(!col) glColor3f(1.0f, 1.0f, 1.0f);
|
if(!col) glColor3f(1.0f, 1.0f, 1.0f);
|
||||||
|
}
|
||||||
|
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
for (index = 0; index < characters; index++) {
|
for (index = 0; index < characters; index++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user