diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-04-25 11:50:41 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-04-25 18:43:18 +0300 |
commit | d19dc5f891519f2c3ea680444bf259db5358f0ce (patch) | |
tree | 10e3fb36bb8c9f95f1497f946675b7f2094e9486 | |
parent | 01136931292e6084a8571f24145c5d9738bf9ff6 (diff) |
EEVEE: UI: Merge the custom parallax checkbox with the panel title.
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_lightprobe.py | 9 |
1 files changed, 5 insertions, 4 deletions
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 |