fix View::pick() callbacks

the handler parameter would be ignored for some overloads.
This commit is contained in:
Mathias Agopian
2022-07-26 11:54:54 -07:00
committed by Mathias Agopian
parent 90f508e89d
commit 3974a548d3
+2 -2
View File
@@ -697,7 +697,7 @@ public:
PickingQuery& query = pick(x, y, [](PickingQueryResult const& result, PickingQuery* pq) {
void* user = pq->storage;
(*static_cast<T**>(user)->*method)(result);
});
}, handler);
query.storage[0] = instance;
}
@@ -720,7 +720,7 @@ public:
T* that = static_cast<T*>(user);
(that->*method)(result);
that->~T();
});
}, handler);
new(query.storage) T(std::move(instance));
}