mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 09:12:09 +10:00
Covered humbucker pickup throwing errors when rotated
This commit is contained in:
Binary file not shown.
@@ -267,8 +267,9 @@ public class HumbuckerPickup extends AbstractTransparentComponent<String> {
|
|||||||
}
|
}
|
||||||
AffineTransform rotation = AffineTransform.getRotateInstance(theta, x, y);
|
AffineTransform rotation = AffineTransform.getRotateInstance(theta, x, y);
|
||||||
for (Shape shape : body) {
|
for (Shape shape : body) {
|
||||||
Area area = (Area) shape;
|
Area area = (Area) shape;
|
||||||
area.transform(rotation);
|
if (area != null)
|
||||||
|
area.transform(rotation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user