Explorar el Código

Allow overrideColor to be changed after construction in PointLightHelper

Lewy Blue hace 8 años
padre
commit
0e536cfeab
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/helpers/PointLightHelper.js

+ 1 - 0
src/helpers/PointLightHelper.js

@@ -62,6 +62,7 @@ PointLightHelper.prototype.dispose = function () {
 PointLightHelper.prototype.update = function () {
 
 	if ( ! this.overrideColor ) this.material.color.copy( this.light.color );
+	else this.material.color.set( this.overrideColor );
 
 	/*
 	var d = this.light.distance;