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=c8e906c4faf1ea94c95fa36f44653b778a1c8b04;hpb=570ba60e83221385f16bb2a7abb33cfc15ac2b06;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 c8e906c4..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; @@ -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)) {