The DEPTH value was being retrieved incorrectly. Fix this 93/315893/1
authorjoogab.yun <joogab.yun@samsung.com>
Fri, 9 Aug 2024 05:03:49 +0000 (14:03 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Fri, 9 Aug 2024 05:03:49 +0000 (14:03 +0900)
Change-Id: Ie0c7556bdaaa661cdfbcf5b298166a94048151fa

dali/internal/event/events/hit-test-algorithm-impl.cpp

index 36e2de32c2b89cfc9f743ea5b1071ffe69c1f923..ab5d59f9d5f234772bc3d83cf7bbdfb8d3b288f3 100644 (file)
@@ -559,7 +559,7 @@ void GeoHitTestRenderTask(const RenderTaskList::ExclusivesContainer& exclusives,
       Dali::Layer sourceLayer(sourceActor->GetLayer());
       if(sourceLayer)
       {
-        const uint32_t sourceActorDepth(sourceLayer.GetProperty<bool>(Dali::Layer::Property::DEPTH));
+        const uint32_t sourceActorDepth(sourceLayer.GetProperty<int32_t>(Dali::Layer::Property::DEPTH));
         CameraActor*   cameraActor     = renderTask.GetCameraActor();
         bool           pickingPossible = cameraActor->BuildPickingRay(screenCoordinates,
                                                             viewport,
@@ -676,7 +676,7 @@ bool HitTestRenderTask(const RenderTaskList::ExclusivesContainer& exclusives,
       Dali::Layer sourceLayer(sourceActor->GetLayer());
       if(sourceLayer)
       {
-        const uint32_t sourceActorDepth(sourceLayer.GetProperty<bool>(Dali::Layer::Property::DEPTH));
+        const uint32_t sourceActorDepth(sourceLayer.GetProperty<int32_t>(Dali::Layer::Property::DEPTH));
 
         CameraActor* cameraActor     = renderTask.GetCameraActor();
         bool         pickingPossible = cameraActor->BuildPickingRay(