forked from 1b-agent/opencadstudio-upstream
fix(render): repaint on layer/property edits (#231)
Layer color/linetype/lineweight and MATCHPROP edits set the document dirty flag but never bumped geometry_epoch. The wire caches key on that epoch and bake a ByLayer entity's resolved color at tessellation time, so they returned stale wires until a new entity forced a rebuild. Bump geometry on those four handlers so the edit repaints immediately. Also remove REGEN/REGENALL/REDRAW/REDRWALL: the GPU raster pipeline keeps the display continuously in sync, so on-demand regen/redraw is a no-op concept in OCS. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
a994a148fe
commit
f6a7b0885f
6 files changed
+29
-12
No files matched your search
@@ -243,8 +243,6 @@ Status of every standard CAD command in Open CAD Studio:
|
||||
| `ZOOM` | Z | Zoom | ✅ |
|
||||
| `PAN` | P | Pan | ✅ |
|
||||
| `ORBIT` | 3DO | 3D orbit | ✅ |
|
||||
| `REGEN` | RE | Regenerate drawing | ✅ |
|
||||
| `REDRAW` | R | Redraw viewport | ✅ |
|
||||
| `VPORTS` | — | Viewport configuration | ✅ |
|
||||
| `VPJOIN` | — | Join viewports | ✅ |
|
||||
| `SYNCPVIEWPORTS` | VPSYNC | Sync viewport display settings | ✅ |
|
||||
|
||||
Reference in new issue
Block a user