mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22: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);
|
||||
for (Shape shape : body) {
|
||||
Area area = (Area) shape;
|
||||
area.transform(rotation);
|
||||
Area area = (Area) shape;
|
||||
if (area != null)
|
||||
area.transform(rotation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user