From f11ddb14ce4fca39c7341a271c06f472357db7bf Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Sun, 24 Mar 2024 16:39:40 +0100 Subject: [PATCH] Make apply_visual_response static --- client/scenes/input_profile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/scenes/input_profile.cpp b/client/scenes/input_profile.cpp index 921a1616..54a5d6db 100644 --- a/client/scenes/input_profile.cpp +++ b/client/scenes/input_profile.cpp @@ -277,13 +277,13 @@ input_profile::input_profile(const std::filesystem::path & json_profile, scene_l } } -void apply_visual_response(node_handle node, std::pair transforms, float value) +static void apply_visual_response(node_handle node, std::pair transforms, float value) { node->position = glm::mix(transforms.first.position, transforms.second.position, value); node->orientation = glm::slerp(transforms.first.orientation, transforms.second.orientation, value); } -void apply_visual_response(node_handle node, input_profile::node_state_visibility, float value) +static void apply_visual_response(node_handle node, input_profile::node_state_visibility, float value) { node->visible = value > 0.5; }