Reset all rotations when rendering.

This commit is contained in:
AlgorithmX2 2014-02-13 20:26:32 -06:00
parent 09cee7b9f5
commit bceff8e902
3 changed files with 9 additions and 0 deletions

View file

@ -92,6 +92,8 @@ public class BusRenderer implements IItemRenderer
BusRenderHelper.instance.ay = ForgeDirection.UP;
BusRenderHelper.instance.az = ForgeDirection.SOUTH;
renderer.uvRotateBottom = renderer.uvRotateEast = renderer.uvRotateNorth = renderer.uvRotateSouth = renderer.uvRotateTop = renderer.uvRotateWest = 0;
if ( item.getItem() instanceof IFacadeItem )
{
IFacadeItem fi = (IFacadeItem) item.getItem();
@ -113,6 +115,8 @@ public class BusRenderer implements IItemRenderer
ip.renderInventory( BusRenderHelper.instance, renderer );
}
renderer.uvRotateBottom = renderer.uvRotateEast = renderer.uvRotateNorth = renderer.uvRotateSouth = renderer.uvRotateTop = renderer.uvRotateWest = 0;
GL11.glPopAttrib();
GL11.glPopMatrix();
}

View file

@ -37,6 +37,7 @@ public class ItemRenderer implements IItemRenderer
GL11.glTranslatef( -0.5f, -0.5f, -0.5f );
if ( type == ItemRenderType.INVENTORY )
GL11.glTranslatef( 0.0f, -0.1f, 0.0f );
WorldRender.instance.renderItemBlock( item );
GL11.glPopAttrib();

View file

@ -60,7 +60,11 @@ public class WorldRender implements ISimpleBlockRenderingHandler
{
AEBaseBlock block = (AEBaseBlock) Block.getBlockFromItem( item.getItem() );
renderer.setRenderBoundsFromBlock( block );
renderer.uvRotateBottom = renderer.uvRotateEast = renderer.uvRotateNorth = renderer.uvRotateSouth = renderer.uvRotateTop = renderer.uvRotateWest = 0;
getRender( block ).renderInventory( block, item, renderer );
renderer.uvRotateBottom = renderer.uvRotateEast = renderer.uvRotateNorth = renderer.uvRotateSouth = renderer.uvRotateTop = renderer.uvRotateWest = 0;
}
private BaseBlockRender getRender(AEBaseBlock block)