LightProbe : Fix UI : display panels.

This commit is contained in:
Clément Foucault 2017-10-01 01:23:48 +02:00
parent cc772e4bca
commit b03aa6afce
1 changed files with 14 additions and 14 deletions

View File

@ -139,20 +139,6 @@ class DATA_PT_lightprobe_display(DataButtonsPanel, Panel):
ob = context.object
probe = context.lightprobe
is_planar = (probe.type is "PLANAR")
split = layout.split()
col = split.column()
col.prop(probe, "show_influence")
col = split.column()
col.active = is_planar
col.prop(probe, "show_parallax")
col = split.column()
col.active = is_planar
col.prop(probe, "show_clip")
row = layout.row()
row.prop(probe, "show_data")
@ -162,6 +148,20 @@ class DATA_PT_lightprobe_display(DataButtonsPanel, Panel):
else:
row.prop(ob, "empty_draw_size", text="Arrow Size")
split = layout.split()
if probe.type in {'GRID', 'CUBEMAP'}:
col = split.column()
col.prop(probe, "show_influence")
col = split.column()
col.prop(probe, "show_clip")
if probe.type == 'CUBEMAP':
col = split.column()
col.active = probe.use_custom_parallax
col.prop(probe, "show_parallax")
classes = (
DATA_PT_context_lightprobe,