Skip to content

Commit

Permalink
Refactor to simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Feb 16, 2024
1 parent 37d89ad commit 0d80cee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/fj-core/src/algorithms/approx/face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use fj_interop::Color;

use crate::{
objects::{Face, Handedness, ObjectSet},
operations::presentation::GetColor,
validate::ValidationConfig,
Core,
};
Expand Down Expand Up @@ -103,7 +104,7 @@ impl Approx for &Face {
FaceApprox {
exterior,
interiors,
color: core.layers.presentation.color.get(self.region()).copied(),
color: self.region().get_color(core),
coord_handedness: self.coord_handedness(),
}
}
Expand Down

0 comments on commit 0d80cee

Please sign in to comment.