Explorar o código

Merge pull request #16068 from Mugen87/dev23

GridHelper: Fixed .copy()
Michael Herzog %!s(int64=6) %!d(string=hai) anos
pai
achega
d27de81ab0
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;
 
 	},