bugfix in Engine::Quad() constructor -- call dCROSS() before dNormalize3()
This commit is contained in:
parent
eb73749f69
commit
65ecbe0d5c
@ -1339,6 +1339,7 @@ Engine::Quad::Quad(float cx, float cy, float cz,
|
|||||||
m_v2[0] = v2x;
|
m_v2[0] = v2x;
|
||||||
m_v2[1] = v2y;
|
m_v2[1] = v2y;
|
||||||
m_v2[2] = v2z;
|
m_v2[2] = v2z;
|
||||||
|
dCROSS(m_normal, =, m_v1, m_v2);
|
||||||
dNormalize3(m_normal);
|
dNormalize3(m_normal);
|
||||||
m_dl = 0;
|
m_dl = 0;
|
||||||
m_visible = true;
|
m_visible = true;
|
||||||
@ -1346,7 +1347,6 @@ Engine::Quad::Quad(float cx, float cy, float cz,
|
|||||||
m_texture = 0;
|
m_texture = 0;
|
||||||
m_enable_blending = false;
|
m_enable_blending = false;
|
||||||
m_color[0] = m_color[1] = m_color[2] = m_color[3] = 1.0f;
|
m_color[0] = m_color[1] = m_color[2] = m_color[3] = 1.0f;
|
||||||
dCROSS(m_normal, =, m_v1, m_v2);
|
|
||||||
render();
|
render();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user