Fix always snap to grid (#1604)

This commit is contained in:
Chenlei Hu
2024-11-19 12:10:40 -05:00
committed by GitHub
parent 6352cd86ee
commit 2a7df57404

View File

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