Explorar o código

GridHelper: Fix .copy()

Mugen87 %!s(int64=6) %!d(string=hai) anos
pai
achega
f6acb549c7
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/helpers/GridHelper.js

+ 3 - 0
src/helpers/GridHelper.js

@@ -63,6 +63,9 @@ GridHelper.prototype = Object.assign( Object.create( LineSegments.prototype ), {
 
 		Object.assign( this.parameters, source.parameters );
 
+		this.geometry.copy( source.geometry );
+		this.material.copy( source.material );
+
 		return this;
 
 	},