Browse Source

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 years ago
parent
commit
50dd930aa5
1 changed files with 5 additions and 0 deletions
  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 ) {