Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasAlban committed Mar 4, 2024
2 parents 3025f13 + 95bc494 commit cded833
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file removed .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "egui-gizmo"
version = "0.16.0"
version = "0.16.1"
authors = ["Urho Laukkarinen <[email protected]>"]
edition = "2021"

Expand Down
Binary file removed src/.DS_Store
Binary file not shown.
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 cded833

Please sign in to comment.