diff --git a/crates/fj-core/src/operations/presentation.rs b/crates/fj-core/src/operations/presentation.rs index 84912d436..ff6232f18 100644 --- a/crates/fj-core/src/operations/presentation.rs +++ b/crates/fj-core/src/operations/presentation.rs @@ -8,6 +8,18 @@ use crate::{ Core, }; +/// Get the color of an object +pub trait GetColor { + /// Get the color of the object + fn get_color(&self, core: &mut Core) -> Option; +} + +impl GetColor for Handle { + fn get_color(&self, core: &mut Core) -> Option { + core.layers.presentation.color.get(self).copied() + } +} + /// Set the color of an object pub trait SetColor: IsObject { /// Set the color of the object