Update herosaver.js

Trying to limit exported meshes
This commit is contained in:
L.Kerck 2019-08-16 21:03:45 +02:00 committed by GitHub
parent 6f8c7ffeb4
commit 42fd30a667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -25,11 +25,12 @@ function init() {
if(object instanceof RK.Mesh){
// if object is hidden - exit
if(object.visible == false) return;
var geometry = object.geometry;
var matrixWorld = object.matrixWorld;
var skeleton = object.skeleton;
var mesh = object;
console.log('Found Mesh' + mesh.name);
if(typeof onlyExportThisMesh !== 'undefined' && mesh.name !== onlyExportThisMesh) return;
if(geometry instanceof RK.BufferGeometry){
var oldgeometry = geometry.clone();
@ -64,7 +65,6 @@ function init() {
var vertices = geometry.vertices;
var faces = geometry.faces;
debugger;
normalMatrixWorld.getNormalMatrix( matrixWorld );
if(typeof faces != 'undefined'){