fix(image-annotate): v1.17.1 无描边后再点无填充会把对象弄隐形,改为自动恢复描边

This commit is contained in:
qiqi committed 2026-11-09 18:11:10 +08:00
1 parent 3baa76d0cd
commit 352a7668d7
6 files changed
+32 -5

No files matched your search

+2
View File
@@ -1668,6 +1668,8 @@ import { hexToRgb, parseRatio, rgbToHex } from '../vendor/image-math.js'
if (sh && !sh.locked && sh.fill) {
if (!skipHistory) saveSnapshot('无填充')
sh.fill = false
// 与「无描边」对称:描边也是无的话对象就彻底看不见了,恢复描边兜底
if (sh.strokeOn === false) { sh.strokeOn = true; S.shapeStrokeOn = true }
renderObjects()
}
updateColorUI()