From: Jussi Koskela Date: Tue, 3 Apr 2018 06:00:03 +0000 (+0300) Subject: Reset SVGNode's data hash on clean up X-Git-Tag: v1.43.0~136^2~512 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=81e3522f6cb5822f701b66a9fbf9be9f9bf97ec9;p=simantics%2Fplatform.git 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 --- 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!