浏览代码

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 年之前
父节点
当前提交
50dd930aa5
共有 1 个文件被更改,包括 5 次插入0 次删除
  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 ) {