From 3974a548d335fdb1fdf64b5873ebcdd17416ba22 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 25 Jul 2022 15:01:14 -0700 Subject: [PATCH] fix View::pick() callbacks the handler parameter would be ignored for some overloads. --- filament/include/filament/View.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filament/include/filament/View.h b/filament/include/filament/View.h index 2de0601401..20295f3cd8 100644 --- a/filament/include/filament/View.h +++ b/filament/include/filament/View.h @@ -697,7 +697,7 @@ public: PickingQuery& query = pick(x, y, [](PickingQueryResult const& result, PickingQuery* pq) { void* user = pq->storage; (*static_cast(user)->*method)(result); - }); + }, handler); query.storage[0] = instance; } @@ -720,7 +720,7 @@ public: T* that = static_cast(user); (that->*method)(result); that->~T(); - }); + }, handler); new(query.storage) T(std::move(instance)); }