Przeglądaj źródła

Merge pull request #14459 from mrdoob/sprite_fix

Object3D: Avoid serialising geometry for Sprites.
Mr.doob 7 lat temu
rodzic
commit
7ccf5ce869
1 zmienionych plików z 1 dodań i 1 usunięć
  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 );