[Bf-blender-cvs] [d19dc5f8915] blender2.8: EEVEE: UI: Merge the custom parallax checkbox with the panel title.
Clément Foucault
noreply at git.blender.org
Wed Apr 25 17:43:20 CEST 2018
Commit: d19dc5f891519f2c3ea680444bf259db5358f0ce
Author: Clément Foucault
Date: Wed Apr 25 10:50:41 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBd19dc5f891519f2c3ea680444bf259db5358f0ce
EEVEE: UI: Merge the custom parallax checkbox with the panel title.
===================================================================
M release/scripts/startup/bl_ui/properties_data_lightprobe.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_data_lightprobe.py b/release/scripts/startup/bl_ui/properties_data_lightprobe.py
index 5bb327f3a05..ece70fd5cbf 100644
--- a/release/scripts/startup/bl_ui/properties_data_lightprobe.py
+++ b/release/scripts/startup/bl_ui/properties_data_lightprobe.py
@@ -117,7 +117,7 @@ class DATA_PT_lightprobe(DataButtonsPanel, Panel):
class DATA_PT_lightprobe_parallax(DataButtonsPanel, Panel):
- bl_label = "Parallax"
+ bl_label = "Custom Parallax"
COMPAT_ENGINES = {'BLENDER_CLAY', 'BLENDER_EEVEE'}
@classmethod
@@ -125,14 +125,15 @@ class DATA_PT_lightprobe_parallax(DataButtonsPanel, Panel):
engine = context.engine
return context.lightprobe and context.lightprobe.type == 'CUBEMAP' and (engine in cls.COMPAT_ENGINES)
+ def draw_header(self, context):
+ probe = context.lightprobe
+ self.layout.prop(probe, "use_custom_parallax", text="")
+
def draw(self, context):
layout = self.layout
- ob = context.object
probe = context.lightprobe
- layout.prop(probe, "use_custom_parallax")
-
col = layout.column()
col.active = probe.use_custom_parallax
More information about the Bf-blender-cvs
mailing list