bak
This commit is contained in:
1 parent
e851d52aef
commit
fcefd258eb
6 files changed
+533
-91
No files matched your search
@@ -396,6 +396,32 @@ export const useSceneStore = defineStore('scene', {
|
||||
sortKfs(arr)
|
||||
return newKf.id
|
||||
},
|
||||
setTrackColor(trackId: string, color: string | null) {
|
||||
const layer = this.activeLayers.find((l) => l.id === trackId)
|
||||
if (layer) {
|
||||
if (color === null) delete layer.color
|
||||
else layer.color = color
|
||||
return
|
||||
}
|
||||
const clipTrack = this.scene.clipTracks?.find((t) => t.id === trackId)
|
||||
if (clipTrack) {
|
||||
if (color === null) delete clipTrack.color
|
||||
else clipTrack.color = color
|
||||
}
|
||||
},
|
||||
setTrackLocked(trackId: string, locked: boolean) {
|
||||
const layer = this.activeLayers.find((l) => l.id === trackId)
|
||||
if (layer) {
|
||||
if (locked) layer.locked = true
|
||||
else delete layer.locked
|
||||
return
|
||||
}
|
||||
const clipTrack = this.scene.clipTracks?.find((t) => t.id === trackId)
|
||||
if (clipTrack) {
|
||||
if (locked) clipTrack.locked = true
|
||||
else delete clipTrack.locked
|
||||
}
|
||||
},
|
||||
setLayerSeparated(layerId: string, separated: boolean) {
|
||||
const layer = this.activeLayers.find((l) => l.id === layerId)
|
||||
if (!layer) return
|
||||
|
||||
Reference in new issue
Block a user