diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/map/hires/blockmodel/ResourceModelBuilder.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/map/hires/blockmodel/ResourceModelBuilder.java index e89e3aeb..fab9909b 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/map/hires/blockmodel/ResourceModelBuilder.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/map/hires/blockmodel/ResourceModelBuilder.java @@ -322,9 +322,8 @@ private void createElementFace(Element element, Direction faceDir, VectorM3f c0, faceDirVector.getY(), faceDirVector.getZ() ); - makeRotationRelative(faceRotationVector); faceRotationVector.rotateAndScale(element.getRotation().getMatrix()); - if (variant.isRotated()) faceRotationVector.transform(variant.getRotationMatrix()); + makeRotationRelative(faceRotationVector); float a = faceRotationVector.y; if (a > 0 && texturePath != null){ @@ -375,7 +374,8 @@ private ExtendedBlock getRotationRelativeBlock(int dx, int dy, int dz){ } private void makeRotationRelative(VectorM3f direction){ - direction.transform(variant.getRotationMatrix()); + if (variant.isRotated()) + direction.transform(variant.getRotationMatrix()); } private float testAo(VectorM3f vertex, Direction dir){