Explorar o código

Allow overrideColor to be changed after construction in RectAreaLightHelper

Lewy Blue %!s(int64=8) %!d(string=hai) anos
pai
achega
a9fb671218
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/helpers/RectAreaLightHelper.js

+ 1 - 0
src/helpers/RectAreaLightHelper.js

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