diff --git a/diylc/diylc-core/src/org/diylc/presenter/InstantiationManager.java b/diylc/diylc-core/src/org/diylc/presenter/InstantiationManager.java index c847d523..341159f3 100644 --- a/diylc/diylc-core/src/org/diylc/presenter/InstantiationManager.java +++ b/diylc/diylc-core/src/org/diylc/presenter/InstantiationManager.java @@ -378,7 +378,8 @@ public class InstantiationManager { PropertyWrapper angleProperty = null; for (PropertyWrapper propertyWrapper : properties) { if (propertyWrapper.getType().getName().equals(Orientation.class.getName()) - || propertyWrapper.getType().getName().equals(OrientationHV.class.getName())) { + || propertyWrapper.getType().getName().equals(OrientationHV.class.getName()) + || propertyWrapper.getName().equalsIgnoreCase("angle")) { angleProperty = propertyWrapper; break; } @@ -397,6 +398,12 @@ public class InstantiationManager { } else if (value instanceof OrientationHV) { angleProperty.setValue(OrientationHV.values()[(((OrientationHV) value).ordinal() + 1) % OrientationHV.values().length]); + } else if (angleProperty.getName().equalsIgnoreCase("angle")) { + int angle = (Integer) angleProperty.getValue(); + angle += 90; + if (angle >= 360) + angle -= 360; + angleProperty.setValue(angle); } angleProperty.writeTo(component); } diff --git a/diylc/diylc-swing/update.xml b/diylc/diylc-swing/update.xml index 80d1a57b..a2b7ea43 100644 --- a/diylc/diylc-swing/update.xml +++ b/diylc/diylc-swing/update.xml @@ -2106,6 +2106,10 @@ NEW_FEATURE DIYLC now comes with predefined component variants out-of-the box, in addition to user-specific variants + + NEW_FEATURE + Right-click rotate while placing components on the canvas now applies to tube sockets as wel + BUG_FIX Fix "Mouse Wheel Zoom" feature that got broken in 3.46.1