mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-03-25 15:28:13 +05:00
December 2014 files
This commit is contained in:
@@ -16,6 +16,7 @@ void ModelPart::_init()
|
||||
neverRender = false;
|
||||
x=y=z = 0.0f;
|
||||
xRot=yRot=zRot = 0.0f;
|
||||
translateX = translateY = translateZ = 0.0f;
|
||||
}
|
||||
|
||||
ModelPart::ModelPart()
|
||||
@@ -158,6 +159,8 @@ void ModelPart::render(float scale, bool usecompiled, bool bHideParentBodyPart)
|
||||
if (!visible) return;
|
||||
if (!compiled) compile(scale);
|
||||
|
||||
glTranslatef(translateX, translateY, translateZ);
|
||||
|
||||
if (xRot != 0 || yRot != 0 || zRot != 0)
|
||||
{
|
||||
glPushMatrix();
|
||||
@@ -243,6 +246,8 @@ void ModelPart::render(float scale, bool usecompiled, bool bHideParentBodyPart)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
glTranslatef(-translateX, -translateY, -translateZ);
|
||||
}
|
||||
|
||||
void ModelPart::renderRollable(float scale, bool usecompiled)
|
||||
|
||||
Reference in New Issue
Block a user