Skip to content

Commit

Permalink
Fix Matrix4 properties transition
Browse files Browse the repository at this point in the history
  • Loading branch information
httpdigest committed Jul 3, 2016
1 parent b14fbaa commit c8ecbf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/org/joml/Matrix4d.java
Original file line number Diff line number Diff line change
Expand Up @@ -2771,7 +2771,7 @@ public Matrix4d transpose3x3(Matrix4d dest) {
dest.m20 = nm20;
dest.m21 = nm21;
dest.m22 = nm22;
dest.properties = (byte) (properties & ~(PROPERTY_PERSPECTIVE));
dest.properties = 0;
return dest;
}

Expand Down Expand Up @@ -2879,7 +2879,7 @@ public Matrix4d setTranslation(double x, double y, double z) {
m30 = x;
m31 = y;
m32 = z;
properties &= ~(PROPERTY_PERSPECTIVE);
properties &= ~(PROPERTY_PERSPECTIVE | PROPERTY_IDENTITY);
return this;
}

Expand Down
4 changes: 2 additions & 2 deletions src/org/joml/Matrix4f.java
Original file line number Diff line number Diff line change
Expand Up @@ -2715,7 +2715,7 @@ public Matrix4f transpose3x3(Matrix4f dest) {
dest.m20 = nm20;
dest.m21 = nm21;
dest.m22 = nm22;
dest.properties = (byte) (properties & ~(PROPERTY_PERSPECTIVE));
dest.properties = 0;
return dest;
}

Expand Down Expand Up @@ -2830,7 +2830,7 @@ public Matrix4f setTranslation(float x, float y, float z) {
m30 = x;
m31 = y;
m32 = z;
properties &= ~(PROPERTY_PERSPECTIVE);
properties &= ~(PROPERTY_PERSPECTIVE | PROPERTY_IDENTITY);
return this;
}

Expand Down

0 comments on commit c8ecbf7

Please sign in to comment.