From 2405bf4d8819e9ec6d0be006c0917ae91002a71c Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Mon, 21 Oct 2019 16:38:54 +0300 Subject: [PATCH] Set correct transformation for vtk objects when they are created gitlab #37 Change-Id: I2750cea2dde97cc86620289e42dbeff22027a2df --- .../src/org/simantics/plant3d/scenegraph/GeometryNode.java | 1 + .../org/simantics/plant3d/scenegraph/P3DParentGeometryNode.java | 1 + 2 files changed, 2 insertions(+) diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/GeometryNode.java b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/GeometryNode.java index 54c14a14..cda89cb4 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/GeometryNode.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/GeometryNode.java @@ -37,6 +37,7 @@ public abstract class GeometryNode extends P3DNode implements ParameterizedNode, public void visualize(VtkView panel) { updateParameters(); component.visualize(panel); + update(panel.getRenderer()); } public void updateParameters() { diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/P3DParentGeometryNode.java b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/P3DParentGeometryNode.java index 317904cb..c33b3374 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/P3DParentGeometryNode.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/P3DParentGeometryNode.java @@ -38,6 +38,7 @@ public class P3DParentGeometryNode extends P3DParentNode public void visualize(VtkView ren) { updateParameters(); component.visualize(ren); + update(ren.getRenderer()); } public void updateParameters() { -- 2.47.1