From ac448b85dc128b810e11b4e6498957f4fcb1bfe2 Mon Sep 17 00:00:00 2001 From: HanifKoh <76276251+HanifKoh@users.noreply.github.com> Date: Thu, 12 Nov 2026 14:31:12 +0800 Subject: [PATCH] Ignore Modifiers When Focus Mode Decides Which Plate an Object Is On (#17474) Focus mode hid an object only when its footprint missed the current plate, and the footprint included its modifiers, negative volumes and support enforcers/blockers. A large modifier reaching over another plate kept the object drawn there. Build the footprint from the model parts only, as plate membership does. (cherry picked from commit 7cb97a82deecc0f9e60b1ed87687e9e5fa09311a) --- docs/HLSD/focus-mode.md | 4 +++- src/slic3r/GUI/GLCanvas3D.cpp | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/HLSD/focus-mode.md b/docs/HLSD/focus-mode.md index 95ed5a277e..a878d523fb 100644 --- a/docs/HLSD/focus-mode.md +++ b/docs/HLSD/focus-mode.md @@ -19,7 +19,9 @@ world axes, which Prepare draws at the corner of the first plate, move to the co plate, where Preview draws them. An object instance is shown when its footprint, the XY bounding box of the convex hulls of its -volumes, overlaps the current plate, or when it is selected. The test is made per instance, so the +parts, overlaps the current plate, or when it is selected. Modifiers, negative volumes and support +enforcers and blockers are left out of the footprint, as plate membership leaves them out: a large +modifier reaching over another plate does not put the object on that plate. The test is made per instance, so the parts of an object are shown or hidden together, and a wipe tower follows its plate the same way. It is geometric rather than the plate membership `PartPlateList` keeps, because an instance stays on the plate it was first placed on: an object of another plate that reaches over this one, or one too diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index a57a482c23..8c58d5fae4 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -9116,7 +9116,10 @@ bool GLCanvas3D::_update_inactive_plates_visibility() if (plate != nullptr) for (const GLVolume* volume : m_volumes.volumes) { Instance& instance = instances[{ volume->object_idx(), volume->instance_idx() }]; - instance.box.merge(volume->transformed_convex_hull_bounding_box()); + // The footprint counts the same volumes plate membership does, the parts: a modifier + // or negative volume reaching over another plate does not put the object on it. + if (!volume->is_modifier) + instance.box.merge(volume->transformed_convex_hull_bounding_box()); instance.selected |= volume->selected; }