Older files that contain "Open Jack 1/4" components sometimes open with

the jacks rotated the wrong way
This commit is contained in:
bancika
2020-04-08 11:41:02 +02:00
parent a665bfcf42
commit ae7f2625ed
5 changed files with 5 additions and 1 deletions
@@ -2898,6 +2898,10 @@
<changeType>NEW_FEATURE</changeType>
<description>Added component-level caching that should speed up rendering dramatically. While in experimental phase, it will be exposed as "Enable Cache Boost" item in the "Config" menu so it can be turned off if it causes any issues</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Older files that contain "Open Jack 1/4" components sometimes open with the jacks rotated the wrong way</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Switched terminal on the "Open Jack 1/4" does not stick to other components</description>
Binary file not shown.
@@ -351,7 +351,7 @@ public class OpenJack1_4 extends AbstractMultiPartComponent<String> {
@EditableProperty
public Integer getAngle() {
if (angle == null) {
if (angle == null || (orientation != null && orientation != Orientation.DEFAULT)) {
if (orientation != null && orientation != Orientation.DEFAULT)
angle = Integer.parseInt(orientation.name().replace("_", ""));
else
Binary file not shown.
Binary file not shown.