Compare commits

..

1 Commits

Author SHA1 Message Date
0328fef4f7 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
2025-08-12 09:38:43 +03:00

View File

@@ -226,7 +226,7 @@ namespace omath
return {static_cast<float>(this->x), static_cast<float>(this->y)}; return {static_cast<float>(this->x), static_cast<float>(this->y)};
} }
[[nodiscard]] [[nodiscard]]
static Vector3<float> from_im_vec2(const ImVec2& other) noexcept static Vector2 from_im_vec2(const ImVec2& other) noexcept
{ {
return {static_cast<Type>(other.x), static_cast<Type>(other.y)}; return {static_cast<Type>(other.x), static_cast<Type>(other.y)};
} }