Fixed scale up amount calculations
This commit is contained in:
parent
85cc0c2457
commit
976c71215b
5 changed files with 6 additions and 6 deletions
|
|
@ -144,7 +144,7 @@ CanvasComponentContainer::TransformDrawData CanvasComponentContainer::calculate_
|
|||
}
|
||||
|
||||
void CanvasComponentContainer::scale_up(const WorldScalar& scaleUpAmount) {
|
||||
coords.inverseScale *= scaleUpAmount;
|
||||
coords.scale_about(WorldVec{0, 0}, scaleUpAmount, true);
|
||||
calculate_world_bounds();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue