From 2a371377ef1a3f0ae2bfc1455bb6f4510909818d Mon Sep 17 00:00:00 2001 From: "Val Erastov (xibyte)" Date: Thu, 2 Apr 2020 02:20:49 -0700 Subject: [PATCH] save configuration for angular measure --- web/app/sketcher/io.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/app/sketcher/io.js b/web/app/sketcher/io.js index e88996a2..aec017d9 100644 --- a/web/app/sketcher/io.js +++ b/web/app/sketcher/io.js @@ -202,6 +202,9 @@ IO.prototype._loadSketch = function(sketch) { } else if (_class === T.ANGLE_BW) { skobj = new AngleBetweenDimension(index[obj.a], index[obj.b]); skobj.offset = obj.offset; + if (obj.configuration) { + skobj.configuration = obj.configuration.map(o => index[o]); + } } this.viewer.dimLayer.add(skobj); index[obj.id] = skobj; @@ -401,6 +404,7 @@ IO.prototype._serializeSketch = function(metadata) { to.a = obj.a.id; to.b = obj.b.id; to.offset = obj.offset; + to.configuration = obj.configuration.map(o => o.id); } const children = nonPointChildren(obj).map(c => c.id); if (children.length !== 0) {