Commit b38c4b3
alferio
fix(stretch): hotspot stretch
Fixed the hotspot-driven stretch path too.
Root cause:
- hotspot runtime geometry for instances is rebuilt in GroupScene.recomputeInstanceGeometryFromPrototype(...)
- applyHotspotToRuntimeGeometry(...) stretches triangles in place
- that breaks the DraftFaceStore color map for the same reason as the regular stretch tool: mutable triangle keys change after vertex mutation
Patch:
- core/src/main/kotlin/com/github/alfu32/sketch/model/GroupScene.kt:1788
- after hotspot runtime geometry is applied, the temporary runtime lineStore and faceStore now call notifyExternalChange()
- this rehashes:
- face colors
- face selection
- line selection1 parent 2d9c083 commit b38c4b3
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1785 | 1785 | | |
1786 | 1786 | | |
1787 | 1787 | | |
| 1788 | + | |
| 1789 | + | |
1788 | 1790 | | |
1789 | 1791 | | |
1790 | 1792 | | |
| |||
0 commit comments