return mCropToMask;
}
+Dali::RenderTask SceneView::GetRenderTask()
+{
+ return mRenderTask;
+}
+
void SceneView::SetProperty(BaseObject* object, Property::Index index, const Property::Value& value)
{
Scene3D::SceneView sceneView = Scene3D::SceneView::DownCast(Dali::BaseHandle(object));
Vector3 direction;
cameraActor.ScreenToLocal(x, y, result.x, result.y);
- auto list = Stage::GetCurrent().GetRenderTaskList();
- [[maybe_unused]] auto taskCount = list.GetTaskCount();
- renderTask = list.GetTask(list.GetTaskCount() - 1);
+ auto sceneViewRenderTask = GetImpl(sceneView).GetRenderTask();
- if(HitTestAlgorithm::BuildPickingRay(renderTask, result, origin, direction))
+ if(sceneViewRenderTask && HitTestAlgorithm::BuildPickingRay(sceneViewRenderTask, result, origin, direction))
{
for(auto& mesh : meshData)
{