Skip to content

Commit

Permalink
Fix the isCameraRotatedIn3D condition. (#5311)
Browse files Browse the repository at this point in the history
Do not show in changelog
  • Loading branch information
D8H authored May 19, 2023
1 parent 73e0879 commit fde1039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GDJS/Runtime/pixi-renderers/layer-pixi-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ namespace gdjs {
isCameraRotatedIn3D() {
return (
this._threeCamera &&
this._threeCamera.rotation.x !== 0 &&
this._threeCamera.rotation.y !== 0
(this._threeCamera.rotation.x !== 0 ||
this._threeCamera.rotation.y !== 0)
);
}

Expand Down

0 comments on commit fde1039

Please sign in to comment.