Ver Fonte

Object3D: Avoid serialising geometry for Sprites.

Mr.doob há 7 anos atrás
pai
commit
52d4c46b6c
1 ficheiros alterados com 1 adições e 1 exclusões
  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 );