Skip to content

Commit

Permalink
Merge pull request #43 from varphone/develop
Browse files Browse the repository at this point in the history
Fix `can't leak crate-private type` compile error
  • Loading branch information
urholaukkarinen authored Feb 24, 2024
2 parents 6b5a8e8 + fd76b87 commit 414c4dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/subgizmo/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ pub(crate) fn outer_circle_radius(config: &GizmoConfig) -> f64 {
(config.scale_factor * (config.visuals.gizmo_size + config.visuals.stroke_width + 5.0)) as f64
}

pub fn gizmo_local_normal(config: &GizmoConfig, direction: GizmoDirection) -> DVec3 {
pub(crate) fn gizmo_local_normal(config: &GizmoConfig, direction: GizmoDirection) -> DVec3 {
match direction {
GizmoDirection::X => DVec3::X,
GizmoDirection::Y => DVec3::Y,
Expand All @@ -318,7 +318,7 @@ pub fn gizmo_local_normal(config: &GizmoConfig, direction: GizmoDirection) -> DV
}
}

pub fn gizmo_normal(config: &GizmoConfig, direction: GizmoDirection) -> DVec3 {
pub(crate) fn gizmo_normal(config: &GizmoConfig, direction: GizmoDirection) -> DVec3 {
let mut normal = gizmo_local_normal(config, direction);

if config.local_space() && direction != GizmoDirection::View {
Expand All @@ -328,7 +328,7 @@ pub fn gizmo_normal(config: &GizmoConfig, direction: GizmoDirection) -> DVec3 {
normal
}

pub fn gizmo_color<T: SubGizmoKind>(
pub(crate) fn gizmo_color<T: SubGizmoKind>(
subgizmo: &SubGizmoConfig<T>,
direction: GizmoDirection,
) -> Color32 {
Expand Down

0 comments on commit 414c4dd

Please sign in to comment.