Skip to content

Commit

Permalink
fix light active bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoLei1990 committed Oct 15, 2019
1 parent 767bb83 commit 72a4623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layaAir/laya/d3/core/light/LightSprite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ export class LightSprite extends Sprite3D {
if (scene._lightCount < maxLightCount) {
scene._lightCount++;
this._addToLightQueue();
this._isAlternate = true;
this._isAlternate = false;
}
else {
scene._alternateLights.add(this);
this._isAlternate = false;
this._isAlternate = true;
console.warn("LightSprite:light count has large than maxLightCount,the latest added light will be ignore.");
}
}
Expand Down

0 comments on commit 72a4623

Please sign in to comment.