Skip to content

Commit b41b206

Browse files
committed
Remove unused updater logic
1 parent 3ca21b4 commit b41b206

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

src/helpers/sceneless-project.ts

+5-24
Original file line numberDiff line numberDiff line change
@@ -2337,28 +2337,9 @@ export const createCompositor = async (
23372337
// In lieu of a versioning system, this can be used
23382338
// to update a ScenelessProject if its base structure changes.
23392339
export const updateToLatest = async (_project: ScenelessProject) => {
2340-
const root = _project.scene.getRoot()
2341-
const coreProject = getProject(_project.id)
2342-
2343-
// Ensure audioContainer exists
2344-
const audioContainer = root.children.find((x) => x.props.id === 'audio')
2345-
if (!audioContainer) {
2346-
await coreProject.compositor.insert(
2347-
{
2348-
id: 'audio',
2349-
name: 'AudioContainer',
2350-
layout: 'Free',
2351-
size: {
2352-
x: 0,
2353-
y: 0,
2354-
},
2355-
position: {
2356-
x: 0,
2357-
y: 0,
2358-
},
2359-
opacity: 0,
2360-
},
2361-
root.id,
2362-
)
2363-
}
2340+
// const root = _project.scene.getRoot()
2341+
// const coreProject = getProject(_project.id)
2342+
2343+
// Update logic here:
2344+
// e.g. if (!root.children.find(x => ...)) await coreProject.compositor.insert({ ... }, root.id)
23642345
}

0 commit comments

Comments
 (0)