Fix AI Paint tool processing state and use full U2net model

- Fix brush_select isProcessing flag not resetting after first use
  (reset in on_leave() when switching tools)
- Add onnxruntime dependency for U2net background removal
- Use full U2net model (176MB) instead of lightweight for better quality

https://claude.ai/code/session_01CLedz6CanT9t46KBvng3vz
This commit is contained in:
Claude
2026-01-28 03:05:23 +00:00
parent e26c914483
commit ed491ab9ba
3 changed files with 15 additions and 8 deletions
+1
View File
@@ -764,6 +764,7 @@ class Brush_select_class extends Base_tools_class {
on_leave() {
this.isDrawing = false;
this.isProcessing = false; // Reset processing state when leaving tool
this.brushPath = [];
return [];
}