From: Marko Luukkainen Date: Mon, 21 Oct 2019 13:38:54 +0000 (+0300) Subject: Set correct transformation for vtk objects when they are created X-Git-Tag: v1.43.0~182 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F88%2F3388%2F1;p=simantics%2F3d.git Set correct transformation for vtk objects when they are created gitlab #37 Change-Id: I2750cea2dde97cc86620289e42dbeff22027a2df --- 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() {