Skip to content

Commit

Permalink
Prevent the object a light is bound to from blocking the light it's e…
Browse files Browse the repository at this point in the history
…mitting
  • Loading branch information
JVital2013 committed Aug 28, 2021
1 parent 0ae73cb commit dc6ff1f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/floor3d-card.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "floor3d-card",
"version": "1.0.4alpha",
"version": "1.0.5alpha",
"description": "Lovelace floor3d-card",
"keywords": [
"home-assistant",
Expand Down
2 changes: 1 addition & 1 deletion src/const.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const CARD_VERSION = '1.0.4alpha';
export const CARD_VERSION = '1.0.5alpha';
1 change: 1 addition & 0 deletions src/floor3d-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ export class Floor3dCard extends LitElement {
}
}
light.position.set(x, y, z);
this._setNoShadowLight(_foundobject);
_foundobject.traverseAncestors(this._setNoShadowLight.bind(this));
light.castShadow = true;
light.name = element.object_id + '_light';
Expand Down

0 comments on commit dc6ff1f

Please sign in to comment.