EEVEE: UI: Merge the custom parallax checkbox with the panel title.

This commit is contained in:
Clément Foucault
2018-04-25 10:50:41 +02:00
parent 0113693129
commit d19dc5f891

View File

@@ -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