Browse Source

Export PointCloud in Object3D :: toJSON

Pavel Vasev 10 years ago
parent
commit
5a5c9ae09a
1 changed files with 1 additions and 1 deletions
  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 );