Skip to content

Commit

Permalink
fix: fix positioning when syncing to obs
Browse files Browse the repository at this point in the history
  • Loading branch information
grantjbutler committed Apr 3, 2022
1 parent df72cf7 commit c86ab61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/renderer/src/integration/obs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ export function useObs() {
}

export function syncLayout(rootNode: LayoutNode, sceneName: string): void {
const origin = { x: rootNode.frame.x, y: rootNode.frame.y };
const nodes = walkLayout(rootNode, origin);
const nodes = walkLayout(rootNode, { x: 0, y: 0 });
window.obs.sync(nodes, sceneName);
}

Expand Down

0 comments on commit c86ab61

Please sign in to comment.