mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-01 17:33:37 -05:00
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 7cb97a82de)
This commit is contained in:
1 parent
55d0762795
commit
ac448b85dc
2 files changed
+7
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user