diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-06-17 02:55:49 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-06-19 11:47:56 +0300 |
commit | 0993af54842ad9ad43a45fded7e397c6eaafb9a0 (patch) | |
tree | b8dea30d57d4ba82ed959d331e2025b12d3e7844 /release/scripts/startup/bl_ui/properties_data_lightprobe.py | |
parent | 3e4b9d2b5a6479ef71cdedf980bcd714f4f94d56 (diff) |
Planar Probe: Add UI, 3d view Display and change defaults.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_lightprobe.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_lightprobe.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_lightprobe.py b/release/scripts/startup/bl_ui/properties_data_lightprobe.py index 603e7b4741b..af6a1affd69 100644 --- a/release/scripts/startup/bl_ui/properties_data_lightprobe.py +++ b/release/scripts/startup/bl_ui/properties_data_lightprobe.py @@ -76,6 +76,11 @@ class DATA_PT_lightprobe(DataButtonsPanel, Panel): col.label("Influence:") col.prop(probe, "influence_distance", "Distance") col.prop(probe, "falloff") + elif probe.type == "PLANAR": + col = split.column(align=True) + col.label("Influence:") + col.prop(probe, "influence_distance", "Distance") + col.prop(probe, "falloff") else: col = split.column(align=True) col.label("Influence:") @@ -91,7 +96,8 @@ class DATA_PT_lightprobe(DataButtonsPanel, Panel): col = split.column(align=True) col.label("Clipping:") col.prop(probe, "clip_start", text="Start") - col.prop(probe, "clip_end", text="End") + if probe.type != "PLANAR": + col.prop(probe, "clip_end", text="End") class DATA_PT_lightprobe_parallax(DataButtonsPanel, Panel): @@ -132,6 +138,7 @@ class DATA_PT_lightprobe_display(DataButtonsPanel, Panel): ob = context.object probe = context.lightprobe + is_planar = (probe.type is "PLANAR") split = layout.split() @@ -139,14 +146,19 @@ class DATA_PT_lightprobe_display(DataButtonsPanel, Panel): 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") - row.prop(probe, "data_draw_size") + if probe.type != "PLANAR": + row.prop(probe, "data_draw_size") + else: + row.prop(ob, "empty_draw_size", text="Arrow Size") classes = ( |