X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.plant3d%2Fsrc%2Forg%2Fsimantics%2Fplant3d%2Feditor%2FP3DContentOutlinePage.java;h=24a141e464141f27ba4ff41ed068dee654cea1a3;hb=53d55c24c779745f188bdb18d32f71d20acb61b2;hp=5a9e8b01e32cf899a1e452cc7c4420737c30728f;hpb=f36217aeeb09c0c46f99886ee99772156ce9cfe6;p=simantics%2F3d.git diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/editor/P3DContentOutlinePage.java b/org.simantics.plant3d/src/org/simantics/plant3d/editor/P3DContentOutlinePage.java index 5a9e8b01..24a141e4 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/editor/P3DContentOutlinePage.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/editor/P3DContentOutlinePage.java @@ -60,14 +60,14 @@ public class P3DContentOutlinePage extends VTKContentOutlinePage list = new ArrayList(); - list.addAll(((PipeRun)parentElement).getControlPoints()); - list.addAll(((PipeRun)parentElement).getSortedChild()); - return list.toArray(); - } - return ((PipeRun)parentElement).getSortedChild().toArray(); - } + if (DEBUG) { + List list = new ArrayList(); + list.addAll(((PipeRun)parentElement).getControlPoints()); + list.addAll(((PipeRun)parentElement).getSortedChild()); + return list.toArray(); + } + return ((PipeRun)parentElement).getSortedChild().toArray(); + } if (DEBUG) { if (parentElement instanceof PipelineComponent) { return new Object[]{((PipelineComponent) parentElement).getControlPoint()}; @@ -124,14 +124,14 @@ public class P3DContentOutlinePage extends VTKContentOutlinePage