Reset SVGNode's data hash on clean up 73/1673/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Tue, 3 Apr 2018 06:00:03 +0000 (09:00 +0300)
committerJussi Koskela <jussi.koskela@semantum.fi>
Tue, 3 Apr 2018 06:00:03 +0000 (09:00 +0300)
AnimatedSVGNode assumes that its diagram cache is initialized if data
hash is not null.

refs #7851

Change-Id: Id143816210c7905a772e2c391a32026bf838f8e6

bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/nodes/SVGNode.java

index fe3fe5e9de6a87834e8bdf114290e8a34b873dc0..f8f692e1d88b70ee080c6adb1591ba5a24d3a70c 100644 (file)
@@ -114,6 +114,7 @@ public class SVGNode extends G2DNode implements InitValueSupport, LoaderNode {
         SVGDiagram d = diagramCache;
         if (d != null) {
             diagramCache = null;
+            dataHash = null;
             SVGUniverse univ = SVGCache.getSVGUniverse();
             if (univ.decRefCountAndClear(d.getXMLBase()) == 0) {
                 // Cleared!