Merge branch 'blender-v2.90-release'
This commit is contained in:
commit
1a5945e2c3
|
@ -212,7 +212,6 @@ class OBJECT_PT_display(ObjectButtonsPanel, Panel):
|
|||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
|
||||
|
||||
obj = context.object
|
||||
obj_type = obj.type
|
||||
is_geometry = (obj_type in {'MESH', 'CURVE', 'SURFACE', 'META', 'FONT', 'VOLUME', 'HAIR', 'POINTCLOUD'})
|
||||
|
@ -237,10 +236,11 @@ class OBJECT_PT_display(ObjectButtonsPanel, Panel):
|
|||
col.prop(obj, "show_in_front", text="In Front")
|
||||
# if obj_type == 'MESH' or is_empty_image:
|
||||
# col.prop(obj, "show_transparent", text="Transparency")
|
||||
sub = layout.column()
|
||||
if is_wire:
|
||||
# wire objects only use the max. display type for duplis
|
||||
col.active = is_dupli
|
||||
col.prop(obj, "display_type", text="Display As")
|
||||
sub.active = is_dupli
|
||||
sub.prop(obj, "display_type", text="Display As")
|
||||
|
||||
if is_geometry or is_dupli or is_empty_image or is_gpencil:
|
||||
# Only useful with object having faces/materials...
|
||||
|
|
Loading…
Reference in New Issue