Update litegraph (Global snap to grid setting) (#1629)

This commit is contained in:
Chenlei Hu
2024-11-21 10:30:54 -05:00
committed by GitHub
parent c41b57128a
commit 479d1b28c7
3 changed files with 6 additions and 9 deletions

View File

@@ -182,10 +182,7 @@ watchEffect(() => {
})
watchEffect(() => {
const alwaysSnapToGrid = settingStore.get('pysssss.SnapToGrid')
if (comfyApp.graph?.config) {
comfyApp.graph.config.alwaysSnapToGrid = alwaysSnapToGrid
}
LiteGraph.alwaysSnapToGrid = settingStore.get('pysssss.SnapToGrid')
})
watchEffect(() => {