Selaa lähdekoodia

Allow overrideColor to be changed after construction in RectAreaLightHelper

Lewy Blue 8 vuotta sitten
vanhempi
commit
a9fb671218
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      src/helpers/RectAreaLightHelper.js

+ 1 - 0
src/helpers/RectAreaLightHelper.js

@@ -67,6 +67,7 @@ RectAreaLightHelper.prototype.update = function () {
 	position.needsUpdate = true;
 
 	if ( ! this.overrideColor ) this.line.material.color.copy( this.light.color );
+	else this.line.material.color.set( this.overrideColor );
 
 };