Fix T58550 Dragged in images dont overlap properly

This patch adds a new "Use Alpha" option on image empties to avoid ordering
issue of reference images.

If ordering is not important, "Use Alpha" can be enabled to provide
transparency and alpha blending support.
This commit is contained in:
Clément Foucault
2019-03-20 16:33:17 +01:00
parent 3508ffc34c
commit c5fc861172
5 changed files with 54 additions and 22 deletions

View File

@@ -48,7 +48,12 @@ class DATA_PT_empty(DataButtonsPanel, Panel):
layout.row(align=True).row(align=True)
layout.prop(ob, "color", text="Transparency", index=3, slider=True)
layout.prop(ob, "empty_image_use_alpha")
col = layout.column()
col.active = ob.empty_image_use_transparency
col.prop(ob, "color", text="Transparency", index=3, slider=True)
col = layout.column(align=True)
col.prop(ob, "empty_image_offset", text="Offset X", index=0)
col.prop(ob, "empty_image_offset", text="Y", index=1)