mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-24 05:10:42 -04:00
Fix arm in hand with second layer arm, fixes #468. (Thanks Daeslender)
This commit is contained in:
parent
c80278857b
commit
0193c04363
@ -140,21 +140,29 @@ namespace ClassicalSharp.Model {
|
||||
|
||||
game.Graphics.PushMatrix();
|
||||
game.Graphics.MultiplyMatrix(ref m);
|
||||
|
||||
ModelPart part = model.RightArm;
|
||||
part.RotX += 1 / 16.0f;
|
||||
part.RotY -= 4 / 16.0f;
|
||||
Rotate = RotateOrder.YZX;
|
||||
|
||||
DrawArmPart(model.RightArm);
|
||||
UpdateVB();
|
||||
if (skinType != SkinType.Type64x32) {
|
||||
index = 0;
|
||||
game.Graphics.AlphaTest = true;
|
||||
DrawArmPart(model.RightArmLayer);
|
||||
UpdateVB();
|
||||
game.Graphics.AlphaTest = false;
|
||||
}
|
||||
|
||||
Rotate = RotateOrder.ZYX;
|
||||
game.Graphics.PopMatrix();
|
||||
}
|
||||
|
||||
void DrawArmPart(ModelPart part) {
|
||||
part.RotX += 1 / 16.0f; part.RotY -= 4 / 16.0f;
|
||||
if (game.ClassicArmModel) {
|
||||
DrawRotate(0, -90 * Utils.Deg2Rad, 120 * Utils.Deg2Rad, part, false);
|
||||
} else {
|
||||
DrawRotate(-20 * Utils.Deg2Rad, -70 * Utils.Deg2Rad, 135 * Utils.Deg2Rad, part, false);
|
||||
}
|
||||
|
||||
Rotate = RotateOrder.ZYX;
|
||||
UpdateVB();
|
||||
game.Graphics.PopMatrix();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user