Update herosaver.js

This commit is contained in:
L.Kerck 2019-08-16 22:42:41 +02:00 committed by GitHub
parent 6b6ac25fbc
commit 5c7c39edd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -30,8 +30,11 @@ function init() {
var skeleton = object.skeleton;
var mesh = object;
console.log('Found Mesh' + mesh.name);
if(typeof onlyExportThisMesh !== 'undefined' && mesh.name != onlyExportThisMesh) return;
if(typeof onlyExportThisMesh !== 'undefined' && mesh.name != onlyExportThisMesh) {
console.log('Looking for :' + onlyExportThisMesh + ' therefore ignoring ' + mesh.name);
return;
}
console.log('exporting: ' + mesh.name);
if(geometry instanceof RK.BufferGeometry){
var oldgeometry = geometry.clone();
geometry = new RK.Geometry().fromBufferGeometry(geometry);