Commit b41b206 1 parent 3ca21b4 commit b41b206 Copy full SHA for b41b206
File tree 1 file changed +5
-24
lines changed
1 file changed +5
-24
lines changed Original file line number Diff line number Diff line change @@ -2337,28 +2337,9 @@ export const createCompositor = async (
2337
2337
// In lieu of a versioning system, this can be used
2338
2338
// to update a ScenelessProject if its base structure changes.
2339
2339
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)
2364
2345
}
You can’t perform that action at this time.
0 commit comments