diff --git a/crates/fj-core/src/layers/presentation.rs b/crates/fj-core/src/layers/presentation.rs index 81c3bc84a..531aa9208 100644 --- a/crates/fj-core/src/layers/presentation.rs +++ b/crates/fj-core/src/layers/presentation.rs @@ -74,13 +74,12 @@ impl Command for DeriveObject { ) -> Self::Result { if let (AnyObject::Region(original), AnyObject::Region(derived)) = (self.original, self.derived) + && let Some(color) = state.color.get(&original).cloned() { - if let Some(color) = state.color.get(&original).cloned() { - events.push(SetColor { - region: derived, - color, - }); - } + events.push(SetColor { + region: derived, + color, + }); } } }