Fix that Quat constructor misbehaves when argument w is 0 (#5957)

This commit is contained in:
Leslie Leigh (李的序)
2019-12-25 12:27:29 +08:00
committed by pandamicro
parent b6985161fa
commit 7e2ec4f0f8
+1 -1
View File
@@ -648,7 +648,7 @@ export class Quat extends ValueType {
this.x = x || 0;
this.y = y || 0;
this.z = z || 0;
this.w = w || 1;
this.w = w ?? 1;
}
}