mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-23 04:57:58 +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;
|
||||
|
||||
AbstractPonyModel model;
|
||||
|
||||
public SaddleBags(AbstractPonyModel model) {
|
||||
this.model = model;
|
||||
|
||||
|
@ -93,7 +94,6 @@ public class SaddleBags implements IModelPart {
|
|||
leftBag.rotateAngleZ = bodySwing;
|
||||
rightBag.rotateAngleZ = -bodySwing;
|
||||
|
||||
// TODO: Interpolate
|
||||
dropAmount = hangLow ? 0.15F : 0;
|
||||
}
|
||||
|
||||
|
@ -103,16 +103,16 @@ public class SaddleBags implements IModelPart {
|
|||
|
||||
@Override
|
||||
public void renderPart(float scale) {
|
||||
if (hangLow) {
|
||||
dropAmount = model.getMetadata().getInterpolator().interpolate("dropAmount", dropAmount, 3);
|
||||
|
||||
GlStateManager.pushMatrix();
|
||||
GlStateManager.translate(0, dropAmount, 0);
|
||||
}
|
||||
|
||||
leftBag.render(scale);
|
||||
rightBag.render(scale);
|
||||
if (hangLow) {
|
||||
|
||||
|
||||
GlStateManager.popMatrix();
|
||||
}
|
||||
strap.render(scale);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue