Extrude preview: a New Body has its own colour, apart from Join (#1805) (#1861)

Thanks @DuBearte.
This commit is contained in:
DuBearte authored and GitHub committed 2026-10-17 04:08:03 -04:00
1 parent 3689f0d6e5
commit 39850fb6ab
7 files changed
+39 -8

No files matched your search

+1 -1
View File
@@ -1001,7 +1001,7 @@ pub fn world_preview(s: &Session, cmds: &[(String, Value)], colors: Colors) -> O
.map(|(_, r)| r.clone());
let (before, after) = (preview.before, preview.after);
// A moved component looks like itself (no new surface), with its old place as the ghost.
let colors = Colors { added: colors.body, ..colors };
let colors = Colors { added: colors.body, new_body: colors.body, ..colors };
let built = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| crate::preview::build(&before, &after, colors)));
Some(match built {
Ok(mut b) => {