Преглед изворни кода

Object3D: Avoid serialising geometry for Sprites.

Mr.doob пре 7 година
родитељ
комит
52d4c46b6c
1 измењених фајлова са 1 додато и 1 уклоњено
  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 );
 

粤ICP备19079148号