]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Allow adding adjustable length components in the middle of a pipe 39/3639/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Thu, 28 Nov 2019 15:39:13 +0000 (17:39 +0200)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Thu, 28 Nov 2019 15:53:17 +0000 (15:53 +0000)
gitlab #26

Change-Id: Iafc06d7553984033a1e085866bf3f21536dd7e3c
(cherry picked from commit f8e541f1d66cda57802da11aaa715b9f9c1c79a9)

org.simantics.plant3d/src/org/simantics/plant3d/dialog/ComponentSelectionDialog.java

index dd3f48076b1a1c12836d24359643c992255bf2a4..00b52f3bb1073b0e12e1cb43dd64b5b18f47b97d 100644 (file)
@@ -437,7 +437,7 @@ public class ComponentSelectionDialog extends Dialog implements ISelectionChange
                                if (selected.getType() == Type.INLINE) {
                                        filterAllowed.add(PositionType.NEXT);
                                        filterAllowed.add(PositionType.PREVIOUS);
-                                       if (inlineSplit) {
+                                       if (inlineSplit && selected.isVariable()) {
                                                lengthText.setEnabled(false);
                                                angleText.setEnabled(false);
                                                rotationAngleText.setEnabled(selected.isRotated());