Browse Source

Object3D: Avoid serialising geometry for Sprites.

Mr.doob 7 years ago
parent
commit
52d4c46b6c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/Object3D.js

+ 1 - 1
src/core/Object3D.js

@@ -678,7 +678,7 @@ Object3D.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
 
 
 		}
 		}
 
 
-		if ( this.geometry !== undefined ) {
+		if ( this.isMesh || this.isLine || this.isPoints ) {
 
 
 			object.geometry = serialize( meta.geometries, this.geometry );
 			object.geometry = serialize( meta.geometries, this.geometry );