mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-23 22:42:32 +03:00
Fix bug in previous label perf commit
This commit is contained in:
parent
fc072fb277
commit
58068b0da0
@ -230,7 +230,7 @@ impl GeomBatch {
|
||||
let bounds = self.get_bounds().scale(scale);
|
||||
let dx = center_on.x() - bounds.width() / 2.0;
|
||||
let dy = center_on.y() - bounds.height() / 2.0;
|
||||
let rotate_around_pt = bounds.center();
|
||||
let rotate_around_pt = bounds.center().offset(dx, dy);
|
||||
|
||||
for (_, poly, _) in &mut self.list {
|
||||
poly.inplace_multi_transform(scale, dx, dy, rotate, rotate_around_pt);
|
||||
|
Loading…
Reference in New Issue
Block a user