Fix T41507: Empty prevents image deletion
Also allow assigning `Object.data = None` from Python
This commit is contained in:
@@ -42,7 +42,7 @@ class DATA_PT_empty(DataButtonsPanel, Panel):
|
||||
layout.prop(ob, "empty_draw_type", text="Display")
|
||||
|
||||
if ob.empty_draw_type == 'IMAGE':
|
||||
layout.template_ID(ob, "data", open="image.open")
|
||||
layout.template_ID(ob, "data", open="image.open", unlink="object.unlink_data")
|
||||
layout.template_image(ob, "data", ob.image_user, compact=True)
|
||||
|
||||
row = layout.row(align=True)
|
||||
|
Reference in New Issue
Block a user