]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Set correct transformation for vtk objects when they are created 88/3388/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Mon, 21 Oct 2019 13:38:54 +0000 (16:38 +0300)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Mon, 21 Oct 2019 13:38:54 +0000 (16:38 +0300)
gitlab #37

Change-Id: I2750cea2dde97cc86620289e42dbeff22027a2df

org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/GeometryNode.java
org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/P3DParentGeometryNode.java

index 54c14a14ad9a09e3336f21e4696b7bed88936c1f..cda89cb40afb4caf79fc6dbfb0393474bd5ee758 100644 (file)
@@ -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() {
index 317904cb9112d7cc81faa77c664c4dd91037f324..c33b3374353bbd908f8dbd596508f861db8383bc 100644 (file)
@@ -38,6 +38,7 @@ public class P3DParentGeometryNode<T extends IP3DNode> extends P3DParentNode<T>
        public void visualize(VtkView ren) {
                updateParameters();
                component.visualize(ren);
+               update(ren.getRenderer());
        }
        
        public void updateParameters() {