Change axis order for transform rotate

This commit is contained in:
Jesse Boyd 2016-10-27 23:40:49 +11:00
parent 30ea572a8e
commit 543af87238
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -101,8 +101,8 @@ public class DefaultTransformParser extends InputParser<TransformExtent> {
parent = affine = new AffineTransformExtent(parent, context.requireWorld().getWorldData().getBlockRegistry()); parent = affine = new AffineTransformExtent(parent, context.requireWorld().getWorldData().getBlockRegistry());
} }
AffineTransform transform = affine.getAffine(); AffineTransform transform = affine.getAffine();
transform = transform.rotateY(x); transform = transform.rotateX(x);
transform = transform.rotateX(y); transform = transform.rotateY(y);
transform = transform.rotateZ(z); transform = transform.rotateZ(z);
affine.setAffine(transform); affine.setAffine(transform);
return (TransformExtent) parent; return (TransformExtent) parent;