X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.proconf.processeditor%2Fsrc%2Forg%2Fsimantics%2Fprocesseditor%2Fanimations%2FPipeFlowAnimation.java;h=b1f4281eac9287258aa877892f5261ab58778b9b;hb=3f308c5d93146caa14c544c4cc93076c4a38f8bb;hp=e37cfa9eaa3ef15bddb2f06634a223d66149d9e4;hpb=b4fddf5cd72860d3f99f4b3d2e1a52b7c6f948d2;p=simantics%2F3d.git diff --git a/org.simantics.proconf.processeditor/src/org/simantics/processeditor/animations/PipeFlowAnimation.java b/org.simantics.proconf.processeditor/src/org/simantics/processeditor/animations/PipeFlowAnimation.java index e37cfa9e..b1f4281e 100644 --- a/org.simantics.proconf.processeditor/src/org/simantics/processeditor/animations/PipeFlowAnimation.java +++ b/org.simantics.proconf.processeditor/src/org/simantics/processeditor/animations/PipeFlowAnimation.java @@ -18,11 +18,9 @@ import javax.vecmath.Vector3d; import org.simantics.db.Graph; import org.simantics.db.Resource; import org.simantics.processeditor.common.ControlPointTools; -import org.simantics.processeditor.common.PipingTools2; import org.simantics.processeditor.stubs.PipeControlPoint; import org.simantics.processeditor.stubs.VariableLengthInlineComponent; import org.simantics.proconf.g3d.animation.Animatable; -import org.simantics.proconf.g3d.base.G3DTools; import org.simantics.proconf.g3d.base.VecmathJmeTools; import com.jme.renderer.ColorRGBA; @@ -78,7 +76,7 @@ public class PipeFlowAnimation implements Animatable{ if (numParticles < 2) numParticles = 2; - particle = ParticleFactory.buildParticles("Animation of " + s.getResource().getResourceId(),numParticles, ParticleGeometry.PT_QUAD);//new ParticleMesh("Animation of " + r.getId(),40); + particle = ParticleFactory.buildParticles("Animation of " + s.getResource().getResourceId(s.getGraph().getSession()),numParticles, ParticleGeometry.PT_QUAD);//new ParticleMesh("Animation of " + r.getId(),40); particle.setEmissionDirection(VecmathJmeTools.get(dir).normalize()); particle.setLocalTranslation(VecmathJmeTools.get(p1)); particle.setEmitType(ParticleGeometry.ET_POINT);