From 81e3522f6cb5822f701b66a9fbf9be9f9bf97ec9 Mon Sep 17 00:00:00 2001 From: Jussi Koskela Date: Tue, 3 Apr 2018 09:00:03 +0300 Subject: [PATCH] Reset SVGNode's data hash on clean up AnimatedSVGNode assumes that its diagram cache is initialized if data hash is not null. refs #7851 Change-Id: Id143816210c7905a772e2c391a32026bf838f8e6 --- .../src/org/simantics/scenegraph/g2d/nodes/SVGNode.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/nodes/SVGNode.java b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/nodes/SVGNode.java index fe3fe5e9d..f8f692e1d 100644 --- a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/nodes/SVGNode.java +++ b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/nodes/SVGNode.java @@ -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! -- 2.43.2