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:
authorClément Foucault <foucault.clem@gmail.com>2018-11-29 00:16:56 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-11-29 23:52:36 +0300
commit8f4ab480bfe81f40b59b20780cb452736fe3af1d (patch)
treec88bcf3a727c4a63abac40847d4891878102344b /release/scripts/startup/bl_ui/space_userpref.py
parent18c9101acc58428fd02d6877c8b1c1711780826e (diff)
Workbench: Rename orientation to type and Camera studio light to Studio
Diffstat (limited to 'release/scripts/startup/bl_ui/space_userpref.py')
-rw-r--r--release/scripts/startup/bl_ui/space_userpref.py22
1 files changed, 8 insertions, 14 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index 4d961ef347a..72b07d55f70 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -45,9 +45,9 @@ class USERPREF_HT_header(Header):
layout.operator("wm.addon_refresh", icon='FILE_REFRESH')
layout.menu("USERPREF_MT_addons_online_resources")
elif userpref.active_section == 'LIGHTS':
- layout.operator('wm.studiolight_install', text="Add MatCap").orientation = 'MATCAP'
- layout.operator('wm.studiolight_install', text="Add World HDRI").orientation = 'WORLD'
- layout.operator('wm.studiolight_install', text="Add Camera HDRI").orientation = 'CAMERA'
+ layout.operator('wm.studiolight_install', text="Add MatCap").type = 'MATCAP'
+ layout.operator('wm.studiolight_install', text="Add LookDev HDRI").type = 'WORLD'
+ layout.operator('wm.studiolight_install', text="Add Studio Light").type = 'STUDIO'
elif userpref.active_section == 'THEMES':
layout.operator("wm.theme_install", icon='FILEBROWSER')
layout.operator("ui.reset_default_theme", icon='LOOP_BACK')
@@ -1492,7 +1492,7 @@ class StudioLightPanelMixin():
return (userpref.active_section == 'LIGHTS')
def _get_lights(self, userpref):
- return [light for light in userpref.studio_lights if light.is_user_defined and light.orientation == self.sl_orientation]
+ return [light for light in userpref.studio_lights if light.is_user_defined and light.type == self.sl_type]
def draw(self, context):
layout = self.layout
@@ -1518,22 +1518,17 @@ class StudioLightPanelMixin():
class USERPREF_PT_studiolight_matcaps(Panel, StudioLightPanelMixin):
bl_label = "MatCaps"
- sl_orientation = 'MATCAP'
+ sl_type = 'MATCAP'
class USERPREF_PT_studiolight_world(Panel, StudioLightPanelMixin):
- bl_label = "World HDRI"
- sl_orientation = 'WORLD'
-
-
-class USERPREF_PT_studiolight_camera(Panel, StudioLightPanelMixin):
- bl_label = "Camera HDRI"
- sl_orientation = 'CAMERA'
+ bl_label = "LookDev HDRIs"
+ sl_type = 'WORLD'
class USERPREF_PT_studiolight_lights(Panel, StudioLightPanelMixin):
bl_label = "Studio Lights"
- sl_orientation = 'CAMERA'
+ sl_type = 'STUDIO'
@classmethod
def poll(cls, context):
@@ -1593,7 +1588,6 @@ classes = (
USERPREF_PT_studiolight_lights,
USERPREF_PT_studiolight_matcaps,
USERPREF_PT_studiolight_world,
- USERPREF_PT_studiolight_camera,
)
if __name__ == "__main__": # only for live edit.