Also apply variant-rotation to the color-calculation. Fixes: #354

This commit is contained in:
Lukas Rieger (Blue) 2022-11-01 14:19:04 +01:00
parent 6c18fde7b0
commit 6213137894
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
1 changed files with 1 additions and 0 deletions

View File

@ -321,6 +321,7 @@ public class ResourceModelBuilder {
);
makeRotationRelative(faceRotationVector);
faceRotationVector.rotateAndScale(element.getRotation().getMatrix());
if (variant.isRotated()) faceRotationVector.transform(variant.getRotationMatrix());
float a = faceRotationVector.y;
if (a > 0 && texturePath != null){