Skip to content

Commit

Permalink
fix: replicate (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
lajbel committed Sep 7, 2024
1 parent 8e9972c commit 29f70be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/physics/area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,8 @@ export function area(opt: AreaCompOpt = {}): AreaComp {

const transform = this.transform
.clone()
.scale(vec2(this.area.scale ?? 1))
.translate(this.area.offset);
.translate(this.area.offset)
.scale(vec2(this.area.scale ?? 1));

if (localArea instanceof k.Rect) {
const offset = anchorPt(this.anchor || DEF_ANCHOR)
Expand Down

0 comments on commit 29f70be

Please sign in to comment.