Humbucker doesn't render second coil poles properly in certain scenarios

This commit is contained in:
bancika
2020-03-27 20:02:39 +01:00
parent 5809c721d7
commit 7d46f49788
3 changed files with 5 additions and 1 deletions
@@ -2794,6 +2794,10 @@
<changeType>BUG_FIX</changeType>
<description>4P5T and DP5T guitar switches were not properly configured for internal pin connections</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Humbucker doesn't render second coil poles properly in certain scenarios</description>
</org.diylc.appframework.update.Change>
</changes>
<url>https://github.com/bancika/diy-layout-creator/releases</url>
</org.diylc.appframework.update.Version>
@@ -317,7 +317,7 @@ public class HumbuckerPickup extends AbstractGuitarPickup {
new Ellipse2D.Double(x /* + pointMargin */- length + poleMargin + i * poleSpacing - poleSize / 2, y
- pointMargin + width - coilMargin - poleSize / 2, poleSize, poleSize);
poleArea.add(new Area(pole));
if (getCoilType1() == PolePieceType.Screws) {
if (getCoilType2() == PolePieceType.Screws) {
if (i % 2 == 1) {
screwPath.moveTo(x /* + pointMargin */- length + poleMargin + i * poleSpacing - poleSize / 2, y
- pointMargin + width - coilMargin - poleSize / 2);
Binary file not shown.