X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2FSCLScenegraph.java;h=d2ad3e9c7a3e91ebf496eae023704f2994a5929e;hp=09999bdd2faccee53b2b4969016756a343ccfa8c;hb=b5af42299ba5e7b5fdf4779332a58f688b8677a7;hpb=e030dd5359ab50cf88fc891af61b6cf43c01f86f diff --git a/bundles/org.simantics.modeling/src/org/simantics/modeling/SCLScenegraph.java b/bundles/org.simantics.modeling/src/org/simantics/modeling/SCLScenegraph.java index 09999bdd2..d2ad3e9c7 100644 --- a/bundles/org.simantics.modeling/src/org/simantics/modeling/SCLScenegraph.java +++ b/bundles/org.simantics.modeling/src/org/simantics/modeling/SCLScenegraph.java @@ -599,6 +599,7 @@ public class SCLScenegraph { } G2DSceneGraph sg = ctx.getSceneGraph(); + sg.performCleanup(); G2DParentNode root = (G2DParentNode) sg.getRootNode(); // rtree is the actual content of the diagram @@ -781,7 +782,9 @@ public class SCLScenegraph { RenderSVGContext parentBuilder2 = getParentBuilder(parentSEN); String key = getKey(parentSEN); + n.setIgnore(false); Element doc = renderSVGNode((IG2DNode)node); + n.setIgnore(true); String svg = printSVGDocument(doc); parentBuilder2.append(SELECTION_SECTION, "\n"); parentBuilder2.append(SELECTION_SECTION, svg); @@ -796,6 +799,7 @@ public class SCLScenegraph { parentBuilder2.append(SELECTION_MASK_SECTION,">"); } parentBuilder2.append(SELECTION_MASK_SECTION,"\n"); + } } else if (node instanceof SVGNode) { SVGNode svg = (SVGNode)node;