mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
fix orientation parsing
This commit is contained in:
@@ -346,7 +346,7 @@ public class OpenJack1_4 extends AbstractMultiPartComponent<String> {
|
|||||||
@EditableProperty
|
@EditableProperty
|
||||||
public Integer getAngle() {
|
public Integer getAngle() {
|
||||||
if (angle == null) {
|
if (angle == null) {
|
||||||
if (orientation != null)
|
if (orientation != null && orientation != Orientation.DEFAULT)
|
||||||
angle = Integer.parseInt(orientation.name().replace("_", ""));
|
angle = Integer.parseInt(orientation.name().replace("_", ""));
|
||||||
else
|
else
|
||||||
angle = 0;
|
angle = 0;
|
||||||
|
|||||||
@@ -389,7 +389,7 @@ public class PilotLampHolder extends AbstractMultiPartComponent<String> {
|
|||||||
@EditableProperty
|
@EditableProperty
|
||||||
public Integer getAngle() {
|
public Integer getAngle() {
|
||||||
if (angle == null) {
|
if (angle == null) {
|
||||||
if (orientation != null)
|
if (orientation != null && orientation != Orientation.DEFAULT)
|
||||||
angle = Integer.parseInt(orientation.name().replace("_", ""));
|
angle = Integer.parseInt(orientation.name().replace("_", ""));
|
||||||
else
|
else
|
||||||
angle = 0;
|
angle = 0;
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user