Apply BGE patch 11137: Render objects with negative scaling correctly (as in Blender)
This commit is contained in:
@@ -125,6 +125,22 @@ void KX_BlenderRenderTools::BeginFrame(RAS_IRasterizer* rasty)
|
||||
|
||||
}
|
||||
|
||||
void KX_BlenderRenderTools::SetClientObject(void* obj)
|
||||
{
|
||||
if (m_clientobject != obj)
|
||||
{
|
||||
if (obj == NULL || !((KX_GameObject*)obj)->IsNegativeScaling())
|
||||
{
|
||||
glFrontFace(GL_CCW);
|
||||
} else
|
||||
{
|
||||
glFrontFace(GL_CW);
|
||||
}
|
||||
m_clientobject = obj;
|
||||
m_modified = true;
|
||||
}
|
||||
}
|
||||
|
||||
bool KX_BlenderRenderTools::RayHit(KX_ClientObjectInfo* client, MT_Point3& hit_point, MT_Vector3& hit_normal, void * const data)
|
||||
{
|
||||
double* const oglmatrix = (double* const) data;
|
||||
|
||||
Reference in New Issue
Block a user