X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.proconf.processeditor%2Fsrc%2Forg%2Fsimantics%2Fprocesseditor%2Fcommon%2FControlPointTools.java;h=c56b969c0bdcdc314763dcf7b002241b1544894d;hb=refs%2Fheads%2Fdev;hp=201d8253f94c2e75a5a87519f646f6a4309f1d35;hpb=b4fddf5cd72860d3f99f4b3d2e1a52b7c6f948d2;p=simantics%2F3d.git diff --git a/org.simantics.proconf.processeditor/src/org/simantics/processeditor/common/ControlPointTools.java b/org.simantics.proconf.processeditor/src/org/simantics/processeditor/common/ControlPointTools.java index 201d8253..c56b969c 100644 --- a/org.simantics.proconf.processeditor/src/org/simantics/processeditor/common/ControlPointTools.java +++ b/org.simantics.proconf.processeditor/src/org/simantics/processeditor/common/ControlPointTools.java @@ -1,3 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2007- VTT Technical Research Centre of Finland. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ package org.simantics.processeditor.common; import java.util.ArrayList; @@ -14,6 +24,7 @@ import javax.vecmath.Vector3d; import org.simantics.db.Graph; import org.simantics.db.Resource; +import org.simantics.db.Session; import org.simantics.layer0.utils.EntityFactory; import org.simantics.layer0.utils.IEntity; import org.simantics.processeditor.ProcessResource; @@ -24,7 +35,7 @@ import org.simantics.processeditor.stubs.PipeRun; import org.simantics.proconf.g3d.base.G3DTools; import org.simantics.proconf.g3d.base.MathTools; import org.simantics.proconf.g3d.base.TransformationTools; -import org.simantics.utils.ErrorLogger; +import org.simantics.utils.ui.ErrorLogger; import org.simantics.utils.datastructures.Pair; @@ -1039,7 +1050,9 @@ public class ControlPointTools { } static boolean isControlPointChanged(PipeControlPoint node) { + long id = node.getResource().getResourceId(); + boolean changed = updatePosition(node); //if (!changed) { if (node.isInstanceOf(ProcessResource.plant3Dresource.PathLegEndControlPoint)) {