From c2cd3f502bd9d6c91169395d37cde71634e00837 Mon Sep 17 00:00:00 2001 From: Zhou Zhenglong Date: Fri, 29 Nov 2024 15:08:40 +0800 Subject: [PATCH] break circular dependency --- native/cocos/scene/RenderScene.cpp | 2 -- native/cocos/scene/RenderScene.h | 1 - 2 files changed, 3 deletions(-) diff --git a/native/cocos/scene/RenderScene.cpp b/native/cocos/scene/RenderScene.cpp index a01c95f8671..f31babe063d 100644 --- a/native/cocos/scene/RenderScene.cpp +++ b/native/cocos/scene/RenderScene.cpp @@ -118,13 +118,11 @@ RenderScene::~RenderScene() = default; void RenderScene::activate() { const auto *sceneData = Root::getInstance()->getPipeline()->getPipelineSceneData(); _octree = sceneData->getOctree(); - _rayTracing->activate(); } bool RenderScene::initialize(const IRenderSceneInfo &info) { _name = info.name; _lodStateCache = ccnew LodStateCache(this); - _rayTracing = ccnew raytracing::RayTracing(this); return true; } diff --git a/native/cocos/scene/RenderScene.h b/native/cocos/scene/RenderScene.h index 13f6be6ca9c..109d8926096 100644 --- a/native/cocos/scene/RenderScene.h +++ b/native/cocos/scene/RenderScene.h @@ -131,7 +131,6 @@ class RenderScene : public RefCounted { uint64_t _modelId{0}; IntrusivePtr _mainLight; IntrusivePtr _lodStateCache; - IntrusivePtr _rayTracing; ccstd::vector> _models; ccstd::vector> _cameras; ccstd::vector> _directionalLights;