Improve drawing conditions

This commit is contained in:
hasufell 2014-05-31 18:51:41 +02:00
parent b87a001ac5
commit 5afe6e0bda
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -257,13 +257,16 @@ static void draw_obj(int32_t const myxrot,
-center_vert.y,
-center_vert.z + SYSTEM_POS_Z);
if (show_normals)
draw_normals(obj, 0);
if (obj->ec != 0)
if (obj->ec != 0) {
if (show_normals)
draw_normals(obj, 0);
draw_vertices(obj, false);
}
draw_bez(obj);
if (obj->bzc != 0)
draw_bez(obj);
glPopMatrix();
}