Pārlūkot izejas kodu

Export PointCloud in Object3D :: toJSON

Pavel Vasev 10 gadi atpakaļ
vecāks
revīzija
5a5c9ae09a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 );