Browse Source

Allow overrideColor to be changed after construction in RectAreaLightHelper

Lewy Blue 8 years ago
parent
commit
a9fb671218
1 changed files with 1 additions and 0 deletions
  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 );
 
 };