UI: Remove User Preference "Enable All Experimental Features"

Users should be able to know explicitly what they are testing.

By having them all enabled we run into a scenario where a new
experimental feature may have been introduced, and the user
is now using it without being even aware of that.

Differential Revision: https://developer.blender.org/D6404
This commit is contained in:
Dalai Felinto
2019-12-12 12:47:45 +01:00
parent 31a3b57037
commit afcdea3961
3 changed files with 2 additions and 36 deletions

View File

@@ -2176,28 +2176,12 @@ class ExperimentalPanel:
self.draw_props(context, layout)
class USERPREF_PT_experimental_all(ExperimentalPanel, Panel):
bl_label = "All"
bl_options = {'HIDE_HEADER'}
def draw_props(self, context, layout):
prefs = context.preferences
experimental = prefs.experimental
col = layout.column()
col.prop(experimental, "use_experimental_all")
# For the other settings create new panels
# and make sure they are disabled if use_experimental_all is True
class USERPREF_PT_experimental_ui(ExperimentalPanel, Panel):
bl_label = "User Interface"
def draw_props(self, context, layout):
prefs = context.preferences
experimental = prefs.experimental
layout.active = not experimental.use_experimental_all
task = "T66304"
split = layout.split(factor=0.66)
@@ -2217,7 +2201,6 @@ class USERPREF_PT_experimental_virtual_reality(ExperimentalPanel, Panel):
def draw_props(self, context, layout):
prefs = context.preferences
experimental = prefs.experimental
layout.active = not experimental.use_experimental_all
task = "T71347"
split = layout.split(factor=0.66)
@@ -2316,7 +2299,6 @@ classes = (
USERPREF_PT_studiolight_matcaps,
USERPREF_PT_studiolight_world,
USERPREF_PT_experimental_all,
USERPREF_PT_experimental_ui,
# Popovers.