fix missing widget center call

This commit is contained in:
Stewart Allen 2021-02-11 22:12:49 -05:00
commit c0ff5d7ac7

View file

@ -27,7 +27,7 @@ class Engine {
try {
new moto.STL().load(url, vertices => {
this.listener({loaded: url, vertices});
this.widget.loadVertices(vertices)
this.widget.loadVertices(vertices).center();
accept(this);
});
} catch (error) {
@ -41,7 +41,7 @@ class Engine {
try {
new moto.STL().parse(data, vertices => {
this.listener({parsed: data, vertices});
this.widget.loadVertices(vertices)
this.widget.loadVertices(vertices).center();
accept(this);
});
} catch (error) {