[Bf-blender-cvs] [dd622af6131] soc-2022-many-lights-sampling: Fix: free Cycles device distant group

Jeffrey Liu noreply at git.blender.org
Sat Jun 25 22:20:29 CEST 2022


Commit: dd622af6131ad56e292dff3ca1d3a4c0a1345ab4
Author: Jeffrey Liu
Date:   Sat Jun 25 16:20:25 2022 -0400
Branches: soc-2022-many-lights-sampling
https://developer.blender.org/rBdd622af6131ad56e292dff3ca1d3a4c0a1345ab4

Fix: free Cycles device distant group

===================================================================

M	intern/cycles/scene/light.cpp

===================================================================

diff --git a/intern/cycles/scene/light.cpp b/intern/cycles/scene/light.cpp
index a7b49bbff65..298477e2d6d 100644
--- a/intern/cycles/scene/light.cpp
+++ b/intern/cycles/scene/light.cpp
@@ -1054,7 +1054,6 @@ void LightManager::device_update_points(Device *, DeviceScene *dscene, Scene *sc
       klights[light_index].co[1] = co.y;
       klights[light_index].co[2] = co.z;
 
-
       klights[light_index].area.axisu[0] = axisu.x;
       klights[light_index].area.axisu[1] = axisu.y;
       klights[light_index].area.axisu[2] = axisu.z;
@@ -1210,6 +1209,8 @@ void LightManager::device_free(Device *, DeviceScene *dscene, const bool free_ba
   /* to-do: check if the light tree member variables need to be wrapped in a conditional too*/
   dscene->light_tree_nodes.free();
   dscene->light_tree_emitters.free();
+  dscene->light_tree_distant_group.free();
+
   dscene->light_distribution.free();
   dscene->lights.free();
   if (free_background) {



More information about the Bf-blender-cvs mailing list