From 0328fef4f75423e687f90062fb2bbea0fee788a9 Mon Sep 17 00:00:00 2001 From: Orange Date: Tue, 12 Aug 2025 09:35:38 +0300 Subject: [PATCH] Fixes Vector3 conversion from ImVec2 Corrects the static function signature for creating a Vector3 from an ImVec2. It was mistakenly returning a Vector3 instead of Vector3. patch --- include/omath/vector2.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/omath/vector2.hpp b/include/omath/vector2.hpp index 8470d75..4123068 100644 --- a/include/omath/vector2.hpp +++ b/include/omath/vector2.hpp @@ -226,7 +226,7 @@ namespace omath return {static_cast(this->x), static_cast(this->y)}; } [[nodiscard]] - static Vector3 from_im_vec2(const ImVec2& other) noexcept + static Vector2 from_im_vec2(const ImVec2& other) noexcept { return {static_cast(other.x), static_cast(other.y)}; }