提交 6fe3e425 编写于 作者: D Don McCurdy 提交者: Don McCurdy

Exporters: Clean up.

上级 cc1a502e
......@@ -1930,7 +1930,7 @@ GLTFExporter.prototype = {
for ( var i = 0; i < input.length; i ++ ) {
if ( input[ i ] instanceof Scene ) {
if ( input[ i ].isScene ) {
processScene( input[ i ] );
......
......@@ -42,13 +42,13 @@ OBJExporter.prototype = {
var normalMatrixWorld = new Matrix3();
if ( geometry instanceof Geometry ) {
if ( geometry.isGeometry ) {
geometry = new BufferGeometry().setFromObject( mesh );
}
if ( geometry instanceof BufferGeometry ) {
if ( geometry.isBufferGeometry ) {
// shortcuts
var vertices = geometry.getAttribute( 'position' );
......@@ -182,13 +182,13 @@ OBJExporter.prototype = {
var geometry = line.geometry;
var type = line.type;
if ( geometry instanceof Geometry ) {
if ( geometry.isGeometry ) {
geometry = new BufferGeometry().setFromObject( line );
}
if ( geometry instanceof BufferGeometry ) {
if ( geometry.isBufferGeometry ) {
// shortcuts
var vertices = geometry.getAttribute( 'position' );
......@@ -251,13 +251,13 @@ OBJExporter.prototype = {
object.traverse( function ( child ) {
if ( child instanceof Mesh ) {
if ( child.isMesh ) {
parseMesh( child );
}
if ( child instanceof Line ) {
if ( child.isLine ) {
parseLine( child );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册