mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Gizmo mouse picking now works
This commit is contained in:
@@ -278,7 +278,7 @@ namespace Nuake {
|
||||
auto gizmoBuffer = Engine::GetCurrentWindow()->GetFrameBuffer();
|
||||
gizmoBuffer->Bind();
|
||||
bool foundSomethingToSelect = false;
|
||||
if (const int result = gizmoBuffer->ReadPixel(3, pixelPos); result > 0)
|
||||
if (const int result = gizmoBuffer->ReadPixel(1, pixelPos); result > 0)
|
||||
{
|
||||
auto ent = Entity{ (entt::entity)(result - 1), Engine::GetCurrentScene().get() };
|
||||
if (ent.IsValid())
|
||||
|
||||
Reference in New Issue
Block a user