Provide ItemCameraTransforms for vanilla models when possible.
This commit is contained in:
parent
8a11ad7a7a
commit
cbe2766c0a
2 changed files with 19 additions and 16 deletions
|
@ -545,6 +545,8 @@ public class ForgeHooksClient
|
||||||
if(pair.getRight() != null) multiplyCurrentGlMatrix(pair.getRight());
|
if(pair.getRight() != null) multiplyCurrentGlMatrix(pair.getRight());
|
||||||
return pair.getLeft();
|
return pair.getLeft();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
switch(cameraTransformType)
|
switch(cameraTransformType)
|
||||||
{
|
{
|
||||||
case FIRST_PERSON:
|
case FIRST_PERSON:
|
||||||
|
@ -562,6 +564,7 @@ public class ForgeHooksClient
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return model;
|
return model;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ public interface IPerspectiveAwareModel extends IBakedModel
|
||||||
public boolean isGui3d() { return parent.isGui3d(); }
|
public boolean isGui3d() { return parent.isGui3d(); }
|
||||||
public boolean isBuiltInRenderer() { return parent.isBuiltInRenderer(); }
|
public boolean isBuiltInRenderer() { return parent.isBuiltInRenderer(); }
|
||||||
public TextureAtlasSprite getTexture() { return parent.getTexture(); }
|
public TextureAtlasSprite getTexture() { return parent.getTexture(); }
|
||||||
public ItemCameraTransforms getItemCameraTransforms() { return ItemCameraTransforms.DEFAULT; }
|
public ItemCameraTransforms getItemCameraTransforms() { return parent.getItemCameraTransforms(); }
|
||||||
public List<BakedQuad> getFaceQuads(EnumFacing side) { return parent.getFaceQuads(side); }
|
public List<BakedQuad> getFaceQuads(EnumFacing side) { return parent.getFaceQuads(side); }
|
||||||
public List<BakedQuad> getGeneralQuads() { return parent.getGeneralQuads(); }
|
public List<BakedQuad> getGeneralQuads() { return parent.getGeneralQuads(); }
|
||||||
public VertexFormat getFormat() { return parent.getFormat(); }
|
public VertexFormat getFormat() { return parent.getFormat(); }
|
||||||
|
|
Loading…
Reference in a new issue