Auto-switch to edit mode if model supports it

This commit is contained in:
Tanish Manku committed 2025-09-09 12:18:26 -07:00
1 parent 3ad642f150
commit 84ebe3fe49
1 file changed
+3
@@ -259,6 +259,9 @@ const PageEdit = () => {
// TODO: Implement a new mode for unsupported masking and hide the nodes layer instead of clearing
store.setActiveTool("select");
store.clearLineNodes();
} else if (supportsMaskedInpainting && store.activeTool === "select") {
// Switch to edit mode if supported and currently in select mode
store.setActiveTool("edit");
}
}, [store, supportsMaskedInpainting]);