Ver código fonte

Update Object3D.js

add the Line.mode property for serializing THREE.Line objects

maybe there is a better way to implement it, this is quick and dirty.
bGute 10 anos atrás
pai
commit
50dd930aa5
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      src/core/Object3D.js

+ 5 - 0
src/core/Object3D.js

@@ -698,6 +698,11 @@ THREE.Object3D.prototype = {
 
 				data.geometry = parseGeometry( object.geometry );
 				data.material = parseMaterial( object.material );
+				
+				if(object instanceof THREE.Line){
+					
+					data.mode = object.mode;
+				}
 
 			} else if ( object instanceof THREE.Sprite ) {