summaryrefslogtreecommitdiffhomepage
path: root/entity/erased-constraints.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'entity/erased-constraints.hpp')
-rw-r--r--entity/erased-constraints.hpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/entity/erased-constraints.hpp b/entity/erased-constraints.hpp
index 4d38f456..af050bd6 100644
--- a/entity/erased-constraints.hpp
+++ b/entity/erased-constraints.hpp
@@ -16,13 +16,13 @@ struct range final
union element {
float f;
U u;
- I i;
+ I i = 0;
Math::Vector4<float> f4;
Math::Vector4<U> u4;
Math::Vector4<I> i4;
};
- element min {.i = 0}, max {.i = 0};
+ element min, max;
type_ type = type_none;
template<typename T> std::pair<T, T> convert() const;
@@ -34,11 +34,4 @@ struct max_length final {
constexpr operator size_t() const { return value; }
};
-struct group final {
- StringView group_name;
- constexpr operator StringView() const { return group_name; }
- constexpr group() = default;
- constexpr group(StringView name) : group_name{name} {}
-};
-
} // namespace floormat::entities::erased_constraints