summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-02-23 14:08:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-02-23 14:08:27 +0100
commit25e36ab269096f11ebb2a1c9f6cc3ab93f830b44 (patch)
tree538f3590ec53edc931e89ad857043924e2a9dd0b /editor
parentd832896c9ab65c28526135441acf55644a442edc (diff)
a
Diffstat (limited to 'editor')
-rw-r--r--editor/inspect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/inspect.cpp b/editor/inspect.cpp
index 52d3bc12..48e4c708 100644
--- a/editor/inspect.cpp
+++ b/editor/inspect.cpp
@@ -41,7 +41,7 @@ using namespace imgui;
using namespace entities;
template<typename T> requires std::is_integral_v<T> constexpr bool eqv(T a, T b) { return a == b; }
-constexpr bool eqv(float a, float b) { return std::fabs(a - b) < 1e-8f; }
+inline bool eqv(float a, float b) { return std::fabs(a - b) < 1e-8f; }
template<typename T, std::size_t N> constexpr bool eqv(const Math::Vector<N, T>& a, const Math::Vector<N, T>& b) { return a == b; }
template<typename T> void do_inspect_field(void* datum, const erased_accessor& accessor, field_repr repr)