[AI] fix(client): 修复图片旋转关闭后仍然旋转的问题

This commit is contained in:
Lobata committed 2026-06-12 22:02:19 +08:00
1 parent 5ac08b3523
commit f3619337d6
13 files changed
+13 -12

No files matched your search

@@ -64,7 +64,7 @@ public class PicRender extends PictureFrameBuffer {
matrix = Matrix4f.createTranslateMatrix(point.x + a, point.y + a, 0);
if (ang > 0) {
if (rotate) {
matrix.multiply(new Quaternion(0, 0, ang, true));
}
@@ -56,7 +56,7 @@ public class PicRender extends PictureFrameBuffer {
int a = size / 2;
if (ang > 0) {
if (rotate) {
matrix = new Matrix4f().translationRotate(point.x + a, point.y + a, 0,
new Quaternionf().fromAxisAngleDeg(0, 0, 1, ang));
} else {
@@ -56,7 +56,7 @@ public class PicRender extends PictureFrameBuffer {
int a = size / 2;
if (ang > 0) {
if (rotate) {
matrix = new Matrix4f().translationRotate(point.x + a, point.y + a, 0,
new Quaternionf().fromAxisAngleDeg(0, 0, 1, ang));
} else {
@@ -48,7 +48,7 @@ public class PicRender extends PictureFrameBuffer {
float a = (float) size / 2;
if (ang > 0) {
if (rotate) {
matrix.translation(point.x + a, point.y + a);
matrix.pushMatrix().rotate((float) Math.toRadians(ang));
} else {
@@ -46,7 +46,7 @@ public class PicRender extends PictureFrameBuffer {
float a = (float) size / 2;
if (ang > 0) {
if (rotate) {
matrix.translation(point.x + a, point.y + a);
matrix.pushMatrix().rotate((float) Math.toRadians(ang));
} else {
@@ -48,7 +48,7 @@ public class PicRender extends PictureFrameBuffer {
float a = (float) size / 2;
if (ang > 0) {
if (rotate) {
matrix.translation(point.x + a, point.y + a);
matrix.pushMatrix().rotate((float) Math.toRadians(ang));
} else {
@@ -64,7 +64,7 @@ public class PicRender extends PictureFrameBuffer {
matrix = Matrix4f.createTranslateMatrix(point.x + a, point.y + a, 0);
if (ang > 0) {
if (rotate) {
matrix.multiply(new Quaternion(0, 0, ang, true));
}
@@ -56,7 +56,7 @@ public class PicRender extends PictureFrameBuffer {
int a = size / 2;
if (ang > 0) {
if (rotate) {
matrix = new Matrix4f().translationRotate(point.x + a, point.y + a, 0,
new Quaternionf().fromAxisAngleDeg(0, 0, 1, ang));
} else {
@@ -56,7 +56,7 @@ public class PicRender extends PictureFrameBuffer {
int a = size / 2;
if (ang > 0) {
if (rotate) {
matrix = new Matrix4f().translationRotate(point.x + a, point.y + a, 0,
new Quaternionf().fromAxisAngleDeg(0, 0, 1, ang));
} else {
@@ -48,7 +48,7 @@ public class PicRender extends PictureFrameBuffer {
float a = (float) size / 2;
if (ang > 0) {
if (rotate) {
matrix.translation(point.x + a, point.y + a);
matrix.pushMatrix().rotate((float) Math.toRadians(ang));
} else {
@@ -46,7 +46,7 @@ public class PicRender extends PictureFrameBuffer {
float a = (float) size / 2;
if (ang > 0) {
if (rotate) {
matrix.translation(point.x + a, point.y + a);
matrix.pushMatrix().rotate((float) Math.toRadians(ang));
} else {
@@ -48,7 +48,7 @@ public class PicRender extends PictureFrameBuffer {
float a = (float) size / 2;
if (ang > 0) {
if (rotate) {
matrix.translation(point.x + a, point.y + a);
matrix.pushMatrix().rotate((float) Math.toRadians(ang));
} else {
@@ -221,6 +221,7 @@ public class AllMusicHud {
*/
private void picRotateTick() {
if (save == null) return;
if (!save.pic.rotate) return;
if (count < save.pic.speed) {
count++;
return;