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:
authorSam Kottler <dev@samkottler.net>2020-08-20 19:40:02 +0300
committerSam Kottler <dev@samkottler.net>2020-08-20 19:40:02 +0300
commit9dd50b39a433dc09b634d70ca8533ad19b4d1d5e (patch)
tree96341c40a13f620aa7f6a92fd6783dc6883216b0 /release/scripts/startup/bl_ui/space_userpref.py
parent35624cdfe5186ee916e4519a013ef5c078d9c667 (diff)
parentc74b4caa724bf74de41ba3928cdd824aa9ba59d2 (diff)
Merge remote-tracking branch 'origin/blender-v2.90-release' into soc-2020-production-ready-light-tree-2soc-2020-production-ready-light-tree-2
Diffstat (limited to 'release/scripts/startup/bl_ui/space_userpref.py')
-rw-r--r--release/scripts/startup/bl_ui/space_userpref.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index 03f85578b6e..9548de20752 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -2118,6 +2118,10 @@ class ExperimentalPanel:
url_prefix = "https://developer.blender.org/"
+ @classmethod
+ def poll(cls, context):
+ return bpy.app.version_cycle == 'alpha'
+
def _draw_items(self, context, items):
prefs = context.preferences
experimental = prefs.experimental
@@ -2178,6 +2182,12 @@ class USERPREF_PT_experimental_prototypes(ExperimentalPanel, Panel):
class USERPREF_PT_experimental_debugging(ExperimentalPanel, Panel):
bl_label = "Debugging"
+ @classmethod
+ def poll(cls, context):
+ # Unlike the other experimental panels, the debugging one is always visible
+ # even in beta or release.
+ return True
+
def draw(self, context):
self._draw_items(
context, (