Переглянути джерело

Allow overrideColor to be changed after construction in RectAreaLightHelper

Lewy Blue 8 роки тому
батько
коміт
a9fb671218
1 змінених файлів з 1 додано та 0 видалено
  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 );
 
 };