Repository navigation
fix(world): mesh_svg 线稿缺省色改取最暗材质色(lingshu bounty #1961,#1122 修法重提) - #1160
Merged
Merged
Conversation
STYLE["outline_color"]=None 的契约是「该物体最暗材质色再压暗 0.42」——旧 实现取 mesh.faces[0],同一几何仅因 OBJ 里面块顺序不同就换线稿色,破坏「同 样场景两次导出逐字节相同」的确定性。修法:_darkest_face_color 按去重材质 色集合的 Rec.709 亮度取最暗(同亮度按 RGB 分量序定序,与面序无关),空网格 回落 default。净增量镜像自 PR #1122(zhtty67-rgb 修法与守卫原样)。 守卫 7 条(基线 4 红/3 绿);mesh_svg 指纹重登记 strict 64/64。
This was referenced Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#1961 修法重提:PR #1122 的修法(mesh_svg 线稿缺省色改取最暗材质色)因维护侧处置时序(#1155 只合了 structure 面)未随之落地——本 PR 从该分支原样重提(内容逐字同 #1122 已审版本,守卫 7 条)。
STYLE["outline_color"]=None契约:该物体最暗材质色再压暗 0.42——旧实现取mesh.faces[0],同一几何仅因 OBJ 里面块顺序不同就换线稿色,破坏「同样场景两次导出逐字节相同」的确定性。_darkest_face_color按去重材质色集合的 Rec.709 亮度取最暗(同亮度按 RGB 分量序定序,与面序无关),空网格回落 default。Tests
tests/test_bounty1961_mesh_svg_outline_darkest.py(7 条,fix: mesh_svg 线稿缺省色改取最暗材质色而非 faces[0](Fixes #1961) #1122 原样)——7 passed;基线(main)4 红/3 绿 ⇒ 鉴别力(已实证)。