瀏覽代碼

Export PointCloud in Object3D :: toJSON

Pavel Vasev 10 年之前
父節點
當前提交
5a5c9ae09a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/Object3D.js

+ 1 - 1
src/core/Object3D.js

@@ -693,7 +693,7 @@ THREE.Object3D.prototype = {
 				data.color = object.color.getHex();
 				data.groundColor = object.groundColor.getHex();
 
-			} else if ( object instanceof THREE.Mesh ) {
+			} else if ( object instanceof THREE.Mesh || object instanceof THREE.PointCloud ) {
 
 				data.geometry = parseGeometry( object.geometry );
 				data.material = parseMaterial( object.material );