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
This commit is contained in:
2025-08-12 09:35:38 +03:00
parent 687772f073
commit 0328fef4f7

View File

@@ -226,7 +226,7 @@ namespace omath
return {static_cast<float>(this->x), static_cast<float>(this->y)};
}
[[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)};
}