瀏覽代碼

Clean up lineMaterial copy

Garrett Johnson 5 年之前
父節點
當前提交
612803c6ae
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      examples/js/lines/LineMaterial.js

+ 6 - 2
examples/js/lines/LineMaterial.js

@@ -381,9 +381,13 @@ THREE.LineMaterial.prototype.copy = function ( source ) {
 
 	this.linewidth = source.linewidth;
 
-	this.resolution = source.resolution;
+	this.dashScale = source.dashScale;
+
+	this.dashSize = source.dashSize;
 
-	// todo
+	this.gapSize = source.gapSize;
+
+	this.resolution = source.resolution;
 
 	return this;