mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-15 06:12:18 +00:00
Auto-switch to edit mode if model supports it
This commit is contained in:
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]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user