From e56196eb1ad0ce0569c29bb86b9ad012ffe99a2d Mon Sep 17 00:00:00 2001 From: MajorCooke Date: Tue, 5 Jul 2016 19:10:49 -0500 Subject: [PATCH] Disable facing camera rotations if the actor is a flat/wall sprite. - It not only looks bad, it also throws off users when trying to make perfectly aligned images since the plane is distorted wildly. --- src/gl/scene/gl_sprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/scene/gl_sprite.cpp b/src/gl/scene/gl_sprite.cpp index 17b2c01dc3..e5edcaf977 100644 --- a/src/gl/scene/gl_sprite.cpp +++ b/src/gl/scene/gl_sprite.cpp @@ -302,7 +302,7 @@ void GLSprite::Draw(int pass) mat.Translate(xcenter, zcenter, ycenter); // move to sprite center // Order of rotations matters. Perform yaw rotation (Y, face camera) before pitch (X, tilt up/down). - if (drawBillboardFacingCamera) + if (drawBillboardFacingCamera && !isFlatSprite) { // [CMB] Rotate relative to camera XY position, not just camera direction, // which is nicer in VR