fix obj export, async loaded grouped import

This commit is contained in:
Stewart Allen 2021-12-19 14:37:29 -05:00
commit 470a4c1f6b
2 changed files with 25 additions and 7 deletions

View file

@ -558,6 +558,9 @@ console.log/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
* called by center() and Group.center()
*/
PRO.moveMesh = function(x, y, z) {
if (!(x || y || z)) {
return;
}
let gap = this.mesh.geometry.attributes.position,
pa = gap.array;
// center point array on 0,0,0