mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-23 12:58:01 +01:00
I completely forgot that this was why I added an interpolator in the first place
This commit is contained in:
parent
a9abab820e
commit
1642614eb4
1 changed files with 8 additions and 8 deletions
|
@ -22,6 +22,7 @@ public class SaddleBags implements IModelPart {
|
||||||
float dropAmount = 0;
|
float dropAmount = 0;
|
||||||
|
|
||||||
AbstractPonyModel model;
|
AbstractPonyModel model;
|
||||||
|
|
||||||
public SaddleBags(AbstractPonyModel model) {
|
public SaddleBags(AbstractPonyModel model) {
|
||||||
this.model = model;
|
this.model = model;
|
||||||
|
|
||||||
|
@ -93,7 +94,6 @@ public class SaddleBags implements IModelPart {
|
||||||
leftBag.rotateAngleZ = bodySwing;
|
leftBag.rotateAngleZ = bodySwing;
|
||||||
rightBag.rotateAngleZ = -bodySwing;
|
rightBag.rotateAngleZ = -bodySwing;
|
||||||
|
|
||||||
// TODO: Interpolate
|
|
||||||
dropAmount = hangLow ? 0.15F : 0;
|
dropAmount = hangLow ? 0.15F : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,16 +103,16 @@ public class SaddleBags implements IModelPart {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void renderPart(float scale) {
|
public void renderPart(float scale) {
|
||||||
if (hangLow) {
|
dropAmount = model.getMetadata().getInterpolator().interpolate("dropAmount", dropAmount, 3);
|
||||||
|
|
||||||
GlStateManager.pushMatrix();
|
GlStateManager.pushMatrix();
|
||||||
GlStateManager.translate(0, dropAmount, 0);
|
GlStateManager.translate(0, dropAmount, 0);
|
||||||
}
|
|
||||||
|
|
||||||
leftBag.render(scale);
|
leftBag.render(scale);
|
||||||
rightBag.render(scale);
|
rightBag.render(scale);
|
||||||
if (hangLow) {
|
|
||||||
|
|
||||||
GlStateManager.popMatrix();
|
GlStateManager.popMatrix();
|
||||||
}
|
|
||||||
strap.render(scale);
|
strap.render(scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue