forked from bartvdbraak/blender
Fix T45465
Easy one, we don't draw quads anymore. Also normal didn't use polygon index
This commit is contained in:
parent
1b8e0d03d4
commit
c23d29c58e
@ -896,7 +896,7 @@ static void cdDM_drawMappedFacesGLSL(
|
|||||||
if (do_draw)
|
if (do_draw)
|
||||||
DM_vertex_attributes_from_gpu(dm, &gattribs, &attribs);
|
DM_vertex_attributes_from_gpu(dm, &gattribs, &attribs);
|
||||||
|
|
||||||
glBegin(GL_QUADS);
|
glBegin(GL_TRIANGLES);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!do_draw) {
|
if (!do_draw) {
|
||||||
@ -917,7 +917,7 @@ static void cdDM_drawMappedFacesGLSL(
|
|||||||
|
|
||||||
if (!smoothnormal) {
|
if (!smoothnormal) {
|
||||||
if (nors) {
|
if (nors) {
|
||||||
glNormal3fv(nors[a]);
|
glNormal3fv(nors[lt->poly]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* TODO ideally a normal layer should always be available */
|
/* TODO ideally a normal layer should always be available */
|
||||||
|
Loading…
Reference in New Issue
Block a user