fix
This commit is contained in:
parent
e889e527ab
commit
3081da883b
@ -401,11 +401,11 @@ export default function Editor(props: EditorProps) {
|
|||||||
}
|
}
|
||||||
if (isMidClick(ev)) {
|
if (isMidClick(ev)) {
|
||||||
setIsPanning(false)
|
setIsPanning(false)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
if (interactiveSegState.isInteractiveSeg) {
|
if (interactiveSegState.isInteractiveSeg) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isPanning) {
|
if (isPanning) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -938,9 +938,7 @@ export default function Editor(props: EditorProps) {
|
|||||||
<IconButton
|
<IconButton
|
||||||
tooltip="Run Inpainting"
|
tooltip="Run Inpainting"
|
||||||
disabled={
|
disabled={
|
||||||
isProcessing ||
|
isProcessing || (!hadDrawSomething() && extraMasks.length === 0)
|
||||||
(!hadDrawSomething() &&
|
|
||||||
interactiveSegState.interactiveSegMask === null)
|
|
||||||
}
|
}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
runInpainting()
|
runInpainting()
|
||||||
|
Loading…
Reference in New Issue
Block a user