Skip to content

Commit 3b762d1

Browse files
authored
Merge pull request #16 from martinRenou/allow_updating_triangles
Allow update triangle indices dynamically
2 parents 2bbb81b + c1b30c1 commit 3b762d1

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@jupyter-widgets/base": "^1.1.10 || ^2",
5353
"backbone": "^1.4.0",
5454
"binary-search-tree": "^0.2.6",
55-
"ganyjs": "^0.1.5",
55+
"ganyjs": "^0.1.6",
5656
"three": "^0.110.0",
5757
"uuid": "^3.3.3"
5858
},

src/widget.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ class PolyMeshModel extends BlockModel {
231231
super.initEventListeners();
232232

233233
this.on('change:vertices', () => { this.block.vertices = this.vertices; });
234+
this.on('change:triangle_indices', () => { this.block.triangleIndices = this.triangleIndices; });
234235
}
235236

236237
block: PolyMesh;

0 commit comments

Comments
 (0)