Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2020-06-11 21:32:39 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-06-26 14:19:34 +0300
commit74c49492c258dfdb92bc243b623f061bca6f3e35 (patch)
tree14d14e11a943688f4a6d85c78ebef47d1eeeef00 /release
parentd865ad59fc3ae991c871febf130fc5b308f306f7 (diff)
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.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_userpref.py7
1 files changed, 5 insertions, 2 deletions
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),
),
)