From a492ea630047b2cda5a97da076b23d5b40b7eaa4 Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Sun, 21 Jun 2026 01:58:39 +0300 Subject: [PATCH] fix(clipboard): tessellate pasted ACIS solids so they render MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Paste added the entities but never rebuilt the solid mesh caches, which are only populated by populate_meshes_from_document (file open, undo, a few commands). A pasted 3D solid — top-level or inside a recreated block definition — therefore had no mesh and stayed invisible. Rebuild the mesh caches after the paste so the solids show up. Co-Authored-By: Claude Opus 4.8 --- src/app/cmd_result.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/cmd_result.rs b/src/app/cmd_result.rs index ce231c425..65ec3923b 100644 --- a/src/app/cmd_result.rs +++ b/src/app/cmd_result.rs @@ -618,6 +618,10 @@ impl OpenCADStudio { for h in new_handles { self.tabs[i].scene.select_entity(h, false); } + // Tessellate any pasted ACIS solids — top-level ones and + // those inside a recreated block definition — so they + // render instead of staying invisible. (#135) + self.tabs[i].scene.populate_meshes_from_document(); self.tabs[i].dirty = true; self.refresh_properties(); self.command_line