Fix T79209: Empties have disabled viewport display settings
This commit is contained in:
parent
0e9999a93e
commit
2bd2db120e
Notes:
blender-bot
2023-02-14 06:45:14 +01:00
Referenced by issue #79209, Empties have disabled Viewport Display settings Referenced by issue #78610, Object Viewport Display options disabled for Empties
|
@ -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