Fix T75613: "In Front" setting did not override image empty "Depth"

Differential Revision: https://developer.blender.org/D7418

Reviewers: campbellbarton, brecht
This commit is contained in:
Vincent Blankfield
2020-04-15 18:49:32 +02:00
committed by Jacques Lucke
parent f250b1f5a0
commit eb46b55e56
2 changed files with 19 additions and 11 deletions

View File

@@ -49,7 +49,9 @@ class DATA_PT_empty(DataButtonsPanel, Panel):
col.prop(ob, "empty_image_offset", text="Y", index=1)
col = layout.column()
col.row().prop(ob, "empty_image_depth", text="Depth", expand=True)
depth_row = col.row()
depth_row.enabled = not ob.show_in_front
depth_row.prop(ob, "empty_image_depth", text="Depth", expand=True)
col.row().prop(ob, "empty_image_side", text="Side", expand=True)
col.prop(ob, "show_empty_image_orthographic", text="Display Orthographic")
col.prop(ob, "show_empty_image_perspective", text="Display Perspective")