Selaa lähdekoodia

Allow overrideColor to be changed after construction in PointLightHelper

Lewy Blue 8 vuotta sitten
vanhempi
commit
0e536cfeab
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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;