Repository navigation
Live Paint: the Live Paint tools and livePaint.fill skip hidden faces - #3460
Merged
bflatastic merged 1 commit intoOct 21, 2026
Merged
Conversation
Contributor
A face hidden on its own (for example with Object > Hide after Live Paint Selection picks it) while its Live Paint group stays visible was still highlighted, selected by Live Paint Selection and filled by the Live Paint Bucket, and it kept the face of a group behind it from being picked. live_paint_at and lp_part_at now take the front-most face that is not hidden (visible_face_at). A point on a hidden face falls through to the visible face of a group behind it; where there is none, an edge pick takes the nearest visible edge as it does outside the faces. livePaint.fill also skips hidden faces. With group, a point on a hidden face is an error. With ids, it fills the face there of another Live Paint group among the objects, or else fails and does not merge the group. Docs: docs/mcp.md.
bflatastic
force-pushed
the
fix/live-paint-tools-skip-hidden-faces
branch
from
October 21, 2026 19:12
1728bc8 to
4bd5502
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
This change follows up #3305 (hidden edges). Select a face of a Live Paint group with the Live Paint Selection tool
and choose Object › Hide. On
mainthe hidden face is still highlighted under the pointer, Live Paint Selectionselects it again, and the Live Paint Bucket fills it. Where it lies over another Live Paint group's face, neither tool
can highlight or pick the face behind it.
live_paint_atandlp_part_atincrates/tools/src/builder.rsnow take the front-most face that is not hidden(
visible_face_at). A point on a hidden face falls through to the visible face of a group behind it. Where no visibleface lies under it, an edge pick takes the nearest visible edge as it does outside the faces.
livePaint.fillalsoskips hidden faces. With
group, a point on a hidden face returns "no Live Paint face at that point". Withids, itfills the face there of another Live Paint group among the objects, or else returns that error and does not merge the
group.
docs/mcp.mddescribes the change.How it was tested
builder::tests::live_paint_tools_skip_hidden_faces: of two groups whose faces overlap, the front one's face ishidden. Both tools highlight and pick the back face where they overlap and pick no face over the hidden one alone,
and Alt-click inside it selects the back group's nearest side.
tests_build::live_paint_fill_skips_hidden_faces:livePaint.fillon a hidden face fails withgroupand withidswithout filling or rebuilding the group, and withidsnaming a second group it fills that group's face.Each test fails with
main's code.On Windows 11 (x86-64) with rustc 1.99.0, on top of
mainat cb0a7d9:CRAFT_FONTS_DIR=<craft-fonts checkout> cargo xtask cipasses its 10 steps: 8,791 tests passed, 0 failed, 13 ignored.git merge-treereports no conflicts withmainat ff02191. #3275, #3255, #3238, #2526, #1849, #1838 and #1281also change
crates/tools/src/builder.rs,crates/engine/src/cmd/buildcmds.rsorcrates/engine/src/tests_build.rs,and this branch adds no conflict with any of them.
Checklist
cargo xtask cipasses (fmt, clippy, tests, assets, brands, layers, wasm).unwrap(),expect(),panic!,unreachable!,todo!orunimplemented!outside tests, and no unchecked indexing on data from files, parameters ormessages. Errors are returned as
Resultand shown to the user(why and how).
ASSETS.md.Summary by CodeRabbit
Bug Fixes
Documentation
Tests