From 9a10d61d4f22a7b6f8235fcbf8f38673b86c4ff5 Mon Sep 17 00:00:00 2001 From: miguel <31931809+miguelvaca@users.noreply.github.com> Date: Mon, 21 Feb 2022 08:51:46 +1100 Subject: [PATCH] Bugfix. Set core and size on material change. --- toroid.html | 1 + 1 file changed, 1 insertion(+) diff --git a/toroid.html b/toroid.html index 660eede..b26aca0 100644 --- a/toroid.html +++ b/toroid.html @@ -594,6 +594,7 @@ this.setMaterial = function (material) { this.material = material; this.mat = this.cores[this.material]; + this.core = this.mat.size[this.size]; }; this.setSize = function (size) {