[Bf-blender-cvs] [49acc52e02e] master: Cycles: make object Fast GI Approximation panel a subpanel of Shading

Brecht Van Lommel noreply at git.blender.org
Wed Aug 4 20:52:57 CEST 2021


Commit: 49acc52e02ec9e0577d3fa1f298720139d9f751b
Author: Brecht Van Lommel
Date:   Wed Aug 4 20:49:50 2021 +0200
Branches: master
https://developer.blender.org/rB49acc52e02ec9e0577d3fa1f298720139d9f751b

Cycles: make object Fast GI Approximation panel a subpanel of Shading

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

M	intern/cycles/blender/addon/ui.py

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

diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index 336fb02ba36..e804f697571 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -1228,10 +1228,10 @@ class CYCLES_OBJECT_PT_shading_shadow_terminator(CyclesButtonsPanel, Panel):
         flow.prop(cob, "shadow_terminator_offset", text="Shading Offset")
 
 
-class CYCLES_OBJECT_PT_gi_approximation(CyclesButtonsPanel, Panel):
+class CYCLES_OBJECT_PT_shading_gi_approximation(CyclesButtonsPanel, Panel):
     bl_label = "Fast GI Approximation"
+    bl_parent_id = "CYCLES_OBJECT_PT_shading"
     bl_context = "object"
-    bl_options = {'DEFAULT_CLOSED'}
 
     def draw(self, context):
         layout = self.layout
@@ -2325,7 +2325,7 @@ classes = (
     CYCLES_OBJECT_PT_motion_blur,
     CYCLES_OBJECT_PT_shading,
     CYCLES_OBJECT_PT_shading_shadow_terminator,
-    CYCLES_OBJECT_PT_gi_approximation,
+    CYCLES_OBJECT_PT_shading_gi_approximation,
     CYCLES_OBJECT_PT_visibility,
     CYCLES_OBJECT_PT_visibility_ray_visibility,
     CYCLES_OBJECT_PT_visibility_culling,



More information about the Bf-blender-cvs mailing list