Add always snap to grid setting (#1177)

* Always snap to grid

* Ban pysssss.SnapToGrid

* nit
This commit is contained in:
Chenlei Hu
2024-10-08 20:12:23 -04:00
committed by GitHub
parent ee88a79bc3
commit d673a521d8
2 changed files with 25 additions and 7 deletions

View File

@@ -62,6 +62,11 @@ export const useExtensionStore = defineStore('extension', () => {
// pysssss.Locking is replaced by pin/unpin in ComfyUI core.
// https://github.com/Comfy-Org/litegraph.js/pull/117
disabledExtensionNames.value.add('pysssss.Locking')
// pysssss.SnapToGrid is replaced by Comfy.Graph.AlwaysSnapToGrid in ComfyUI core.
// pysssss.SnapToGrid tries to write global app.shiftDown state, which is no longer
// allowed since v1.3.12.
// https://github.com/Comfy-Org/ComfyUI_frontend/issues/1176
disabledExtensionNames.value.add('pysssss.SnapToGrid')
}
// Some core extensions are registered before the store is initialized, e.g.