Files
AnyImage/openspec/changes/archive/2026-09-17-update-pasted-brush-preview/proposal.md
nan 198fcbf55b
Some checks failed
Test / test (push) Has been cancelled
Initial public release
2026-09-19 21:31:36 +08:00

25 lines
1009 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## Why
Texture Paint 模式粘贴图片后,笔刷已使用该图片作为纹理,但图标仍显示原有预览,难以直接识别绘制内容。将笔刷图标同步为粘贴图片,让选择笔刷时的视觉提示与实际纹理一致。
## What Changes
- Texture Paint 模式绑定粘贴图片后,同步更新当前可编辑笔刷的自定义预览。
- 预览保持图片比例,支持已打包的剪贴板图片及重复粘贴更新。
- 验证预览即时刷新,以及保存并重新打开文件后的保留效果。
## Capabilities
### New Capabilities
- `pasted-brush-preview`: Texture Paint 粘贴图片与笔刷预览同步。
### Modified Capabilities
## Impact
- `src/anyimage/operators/clipboard_image/actions.py`:笔刷纹理绑定与预览更新。
- `src/anyimage/common/image.py`:复用现有图片读取或导出能力。
- `tests/anyimage/operators/test_clipboard_image.py`:增加预览行为覆盖。
- 使用 Blender 自定义预览 API,沿用现有依赖。