浏览代码

Allow overrideColor to be changed after construction in PointLightHelper

Lewy Blue 8 年之前
父节点
当前提交
0e536cfeab
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;