Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_lightprobe.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_lightprobe.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_lightprobe.py b/release/scripts/startup/bl_ui/properties_data_lightprobe.py
index cca5f823549..13af5139632 100644
--- a/release/scripts/startup/bl_ui/properties_data_lightprobe.py
+++ b/release/scripts/startup/bl_ui/properties_data_lightprobe.py
@@ -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,