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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-09-03 19:58:41 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-09-06 14:26:46 +0300
commite0a4dc6a794670429dc12cd78ae9d19e50ac2a8e (patch)
tree6a5f2f56b1442a691868df579048064bda63b4a7 /release/scripts/startup/bl_ui/properties_object.py
parent1450a375553d4549276f9098a7e43f740059489d (diff)
UI / Python: rename X-Ray to In Front, Draw to Display.
See T56648.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_object.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_object.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py
index 8d4112ad456..4f95f1fbf05 100644
--- a/release/scripts/startup/bl_ui/properties_object.py
+++ b/release/scripts/startup/bl_ui/properties_object.py
@@ -229,7 +229,7 @@ class OBJECT_PT_display(ObjectButtonsPanel, Panel):
obj_type = obj.type
is_geometry = (obj_type in {'MESH', 'CURVE', 'SURFACE', 'META', 'FONT'})
is_wire = (obj_type in {'CAMERA', 'EMPTY'})
- is_empty_image = (obj_type == 'EMPTY' and obj.empty_draw_type == 'IMAGE')
+ is_empty_image = (obj_type == 'EMPTY' and obj.empty_display_type == 'IMAGE')
is_dupli = (obj.dupli_type != 'NONE')
col = flow.column()
@@ -254,7 +254,7 @@ class OBJECT_PT_display(ObjectButtonsPanel, Panel):
col.prop(obj.display, "show_shadows", text="Shadow")
col = flow.column()
- col.prop(obj, "show_x_ray", text="In Front")
+ col.prop(obj, "show_in_front", text="In Front")
# if obj_type == 'MESH' or is_empty_image:
# col.prop(obj, "show_transparent", text="Transparency")
@@ -262,15 +262,15 @@ class OBJECT_PT_display(ObjectButtonsPanel, Panel):
col = flow.column()
if is_wire:
- # wire objects only use the max. draw type for duplis
+ # wire objects only use the max. display type for duplis
col.active = is_dupli
- col.prop(obj, "draw_type", text="Display As")
+ col.prop(obj, "display_type", text="Display As")
split = flow.split(factor=0.6)
split.prop(obj, "show_bounds", text="Bounds")
row = split.row()
- row.active = obj.show_bounds or (obj.draw_type == 'BOUNDS')
- row.prop(obj, "draw_bounds_type", text="")
+ row.active = obj.show_bounds or (obj.display_type == 'BOUNDS')
+ row.prop(obj, "display_bounds_type", text="")
if is_geometry or is_empty_image:
# Only useful with object having faces/materials...