From 61c42e09064dceb8dc7dd4bfd5388bfedbaa23cb Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Mon, 9 Feb 2015 21:12:15 -0800 Subject: [PATCH] refresh constrs list on load --- web/app/main2d.js | 1 + web/sketcher.html | 1 + 2 files changed, 2 insertions(+) diff --git a/web/app/main2d.js b/web/app/main2d.js index 083d3bc9..ea777134 100644 --- a/web/app/main2d.js +++ b/web/app/main2d.js @@ -267,6 +267,7 @@ TCAD.App2D.prototype.loadSketch = function(sketch, defaultLayer) { var c = this.parseConstr(sketch.constraints[i], index); this.viewer.parametricManager.system.push(c); } + this.viewer.parametricManager.notify(); } }; diff --git a/web/sketcher.html b/web/sketcher.html index a6474173..eee4dcd0 100644 --- a/web/sketcher.html +++ b/web/sketcher.html @@ -240,6 +240,7 @@ }); app.viewer.parametricManager.listeners.push(function() {constrList.refresh()}); + constrList.refresh(); } window.onload = function() { setTimeout(start, 0);