From a768733aec06a395ad409e5ed8c49dee69414d64 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 26 May 2023 07:18:48 +0200 Subject: editor/inspect: add inspecting light properties --- editor/inspect.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'editor/inspect.cpp') diff --git a/editor/inspect.cpp b/editor/inspect.cpp index bfd2e3dc..e08927e5 100644 --- a/editor/inspect.cpp +++ b/editor/inspect.cpp @@ -113,8 +113,8 @@ bool do_inspect_field(void* datum, const erased_accessor& accessor, field_repr r { auto [min, max] = accessor.get_range(datum).convert(); constexpr auto igdt = IGDT; - constexpr T step(!std::is_floating_point_v ? T(1) : T(1e-6f)), - step2(!std::is_floating_point_v ? T(10) : T(1e-3f)); + constexpr T step(!std::is_floating_point_v ? T(1) : T(1.f)), + step2(!std::is_floating_point_v ? T(10) : T(.25f)); switch (repr) { default: fm_warn_once("invalid repr enum value '%zu'", (size_t)repr); break; @@ -152,8 +152,8 @@ bool do_inspect_field(void* datum, const erased_accessor& accessor, field_repr r using U = typename T::Type; auto [min, max] = accessor.get_range(datum).convert(); constexpr auto igdt = IGDT; - constexpr T step(!std::is_floating_point_v ? U(1) : U(1e-6f)), - step2(!std::is_floating_point_v ? U(10) : U(1e-3f)); + constexpr T step(!std::is_floating_point_v ? U(1) : U(1.f)), + step2(!std::is_floating_point_v ? U(10) : U(0.25f)); switch (repr) { default: -- cgit v1.2.3