fixing linux build failure

This commit is contained in:
2024-11-13 12:23:16 +01:00
parent e29ea92202
commit c6aaa4e2fa
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ namespace mlx
return static_cast<Sprite*>(drawable.get())->GetTexture() == texture &&
drawable->GetPosition() == position &&
drawable->GetScale() == Vec2f{ scale, scale } &&
drawable->GetRotation() == EulerAnglesf{ 0.0f, 0.0f, rotation };
drawable->GetRotation().ToEulerAngles() == EulerAnglesf{ 0.0f, 0.0f, rotation };
});
return static_cast<Sprite*>(it != m_drawables.end() ? it->get() : nullptr);
}