Skip to content

Commit 73b4f31

Browse files
committed
Allow update triangle indices dynamically
1 parent 9cf3d54 commit 73b4f31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)