Skip to content

Commit eaea6a7

Browse files
committed
Fixed SetScale ternary.
1 parent 12499c1 commit eaea6a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v3/src/components/Transform.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ var Transform = {
126126
if (x === undefined) { x = 1; }
127127
if (y === undefined) { y = x; }
128128

129-
this.scaleX = (x ? x : 0.0);
130-
this.scaleY = (y ? y : 0.0);
129+
this.scaleX = x;
130+
this.scaleY = y;
131131

132132
return this;
133133
}

0 commit comments

Comments
 (0)