Explorar o código

HemisphereLight#clone() should create a new HemisphereLight, not a PointLight

Isaac Sukin %!s(int64=12) %!d(string=hai) anos
pai
achega
433d1bd574
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/lights/HemisphereLight.js

+ 1 - 1
src/lights/HemisphereLight.js

@@ -17,7 +17,7 @@ THREE.HemisphereLight.prototype = Object.create( THREE.Light.prototype );
 
 THREE.HemisphereLight.prototype.clone = function () {
 
-	var light = new THREE.PointLight();
+	var light = new THREE.HemisphereLight();
 
 	THREE.Light.prototype.clone.call( this, light );