Skip to content

Commit

Permalink
update body
Browse files Browse the repository at this point in the history
  • Loading branch information
tyanmahou committed Dec 25, 2024
1 parent a8aa171 commit 7f88042
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Re-Abyss/app/components/Actor/Common/Body.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,10 @@ namespace abyss::Actor
return RectF{ Arg::bottomCenter = pos, size };
} else if (anchor == BodyAnchor::TopCenter) {
return RectF{ Arg::topCenter = pos, size };
} else if (anchor == BodyAnchor::CenterLeft) {
return RectF{ Arg::leftCenter = pos, size };
} else if (anchor == BodyAnchor::CenterRight) {
return RectF{ Arg::rightCenter = pos, size };
} else {
return RectF{ Arg::center = pos, size };
}
Expand Down

0 comments on commit 7f88042

Please sign in to comment.