mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 09:32:38 +08:00
Fix that Quat constructor misbehaves when argument w is 0 (#5957)
This commit is contained in:
committed by
pandamicro
parent
b6985161fa
commit
7e2ec4f0f8
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user