X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scenegraph%2Fsrc%2Forg%2Fsimantics%2Fscenegraph%2Fg2d%2FG2DSceneGraph.java;h=9055a8efeca37c1c4822558b77c6ab1c36d242cb;hp=204181c3786fe01631e4b333cce06a7e681bdfd3;hb=5b16b1d94b0c046803f8b246d32b74f289eca646;hpb=5a1429ae3eca8b03df0fe9784440f066502fbce7 diff --git a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DSceneGraph.java b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DSceneGraph.java index 204181c37..9055a8efe 100644 --- a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DSceneGraph.java +++ b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/G2DSceneGraph.java @@ -105,9 +105,9 @@ public class G2DSceneGraph extends G2DParentNode implements ILookupService, INod return focusNode; } - @Override + @Override public void render(Graphics2D g2d) { - performCleanup(); + refresh(); Component rootPane = getRootPane(); if (rootPane != null) g2d.setRenderingHint(G2DRenderingHints.KEY_COMPONENT, rootPane); @@ -116,6 +116,12 @@ public class G2DSceneGraph extends G2DParentNode implements ILookupService, INod } } + @Override + public void refresh() { + performCleanup(); + super.refresh(); + } + /** * Util method for executing updates to scenegraph tree * NOTE: You should really consider performance issues when using this