From 74c49492c258dfdb92bc243b623f061bca6f3e35 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 11 Jun 2020 20:32:39 +0200 Subject: Cycles: add experimental preference to replace magic debug value 256 Previously you'd have to run with --debug-value 256, now just make it a preference so the Debug panel can be always available for developers. --- release/scripts/startup/bl_ui/space_userpref.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index c1502165e44..e5171df597a 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -2114,8 +2114,10 @@ class ExperimentalPanel: split = layout.split(factor=0.66) col = split.split() col.prop(experimental, **prop_keywords) - col = split.split() - col.operator("wm.url_open", text=task, icon='URL').url = self.url_prefix + task + + if task: + col = split.split() + col.operator("wm.url_open", text=task, icon='URL').url = self.url_prefix + task """ # Example panel, leave it here so we always have a template to follow even @@ -2163,6 +2165,7 @@ class USERPREF_PT_experimental_debugging(ExperimentalPanel, Panel): self._draw_items( context, ( ({"property": "use_undo_legacy"}, "T60695"), + ({"property": "use_cycles_debug"}, None), ), ) -- cgit v1.2.3