diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-26 07:18:48 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-26 07:18:48 +0200 |
| commit | a768733aec06a395ad409e5ed8c49dee69414d64 (patch) | |
| tree | 9d3b49f76f8e224b85d40fcc7c064942413c3b88 /editor/inspect.cpp | |
| parent | c2da6e265b059cc21fd1aa9f1e975f99a940d6a3 (diff) | |
editor/inspect: add inspecting light properties
Diffstat (limited to 'editor/inspect.cpp')
| -rw-r--r-- | editor/inspect.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<T>(); constexpr auto igdt = IGDT<T>; - constexpr T step(!std::is_floating_point_v<T> ? T(1) : T(1e-6f)), - step2(!std::is_floating_point_v<T> ? T(10) : T(1e-3f)); + constexpr T step(!std::is_floating_point_v<T> ? T(1) : T(1.f)), + step2(!std::is_floating_point_v<T> ? 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<T>(); constexpr auto igdt = IGDT<U>; - constexpr T step(!std::is_floating_point_v<U> ? U(1) : U(1e-6f)), - step2(!std::is_floating_point_v<U> ? U(10) : U(1e-3f)); + constexpr T step(!std::is_floating_point_v<U> ? U(1) : U(1.f)), + step2(!std::is_floating_point_v<U> ? U(10) : U(0.25f)); switch (repr) { default: |
