Skip to content

Commit

Permalink
fix(scenes): hasNestedScene check (stream-labs#1600)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackxored authored and avacreeth committed Apr 9, 2019
1 parent 19b0b23 commit 9bfbfc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/services/scenes/scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ export class Scene {
if (this.id === source.sourceId) return false;

const sceneToAdd = this.scenesService.getScene(source.sourceId);

if (!sceneToAdd) return true;

return !sceneToAdd.hasNestedScene(this.id);
}

Expand Down

0 comments on commit 9bfbfc5

Please sign in to comment.