Skip to content

Commit 2f5380f

Browse files
committed
make correct transform call depending on dimensions
1 parent fb59882 commit 2f5380f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/src/processing/opengl/PShapeOpenGL.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,11 @@ public void translate(float tx, float ty, float tz) {
12511251

12521252
@Override
12531253
public void rotate(float angle) {
1254-
transform(ROTATE, angle);
1254+
if (is3D) {
1255+
transform(ROTATE, angle, 0, 0, 1);
1256+
} else {
1257+
transform(ROTATE, angle);
1258+
}
12551259
}
12561260

12571261

0 commit comments

Comments
 (0)