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_empty.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_empty.py35
1 files changed, 10 insertions, 25 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_empty.py b/release/scripts/startup/bl_ui/properties_data_empty.py
index 1523f69536f..7ded4c775a7 100644
--- a/release/scripts/startup/bl_ui/properties_data_empty.py
+++ b/release/scripts/startup/bl_ui/properties_data_empty.py
@@ -54,34 +54,20 @@ class DATA_PT_empty(DataButtonsPanel, Panel):
depth_row.prop(ob, "empty_image_depth", text="Depth", expand=True)
col.row().prop(ob, "empty_image_side", text="Side", expand=True)
- col = layout.column(heading="Show in", align=True)
+ col = layout.column(heading="Show In", align=True)
col.prop(ob, "show_empty_image_orthographic", text="Orthographic")
col.prop(ob, "show_empty_image_perspective", text="Perspective")
col.prop(ob, "show_empty_image_only_axis_aligned", text="Only Axis Aligned")
-
-class DATA_PT_empty_alpha(DataButtonsPanel, Panel):
- bl_label = "Transparency"
- bl_parent_id = "DATA_PT_empty"
-
- @classmethod
- def poll(cls, context):
- ob = context.object
- return (ob and ob.type == 'EMPTY' and ob.empty_display_type == 'IMAGE')
-
- def draw_header(self, context):
- ob = context.object
-
- self.layout.prop(ob, "use_empty_image_alpha", text="")
-
- def draw(self, context):
- layout = self.layout
- layout.use_property_split = True
-
- ob = context.object
-
- layout.active = ob.use_empty_image_alpha
- layout.prop(ob, "color", text="Opacity", index=3, slider=True)
+ col = layout.column(align=False, heading="Transparency")
+ col.use_property_decorate = False
+ row = col.row(align=True)
+ sub = row.row(align=True)
+ sub.prop(ob, "use_empty_image_alpha", text="")
+ sub = sub.row(align=True)
+ sub.active = ob.use_empty_image_alpha
+ sub.prop(ob, "color", text="", index=3, slider=True)
+ row.prop_decorator(ob, "color", index=3)
class DATA_PT_empty_image(DataButtonsPanel, Panel):
@@ -102,7 +88,6 @@ class DATA_PT_empty_image(DataButtonsPanel, Panel):
classes = (
DATA_PT_empty,
- DATA_PT_empty_alpha,
DATA_PT_empty_image,
)