Empties with Images draw type: add support for movies and image sequences

This adds an ImageUser to such empties with all the typical settings.

Reviewed By: brecht, campbellbarton

Differential Revision: https://developer.blender.org/D108
This commit is contained in:
Geoffroy Krantz
2014-01-13 21:57:05 +01:00
committed by Brecht Van Lommel
parent e9984653a8
commit ff98be83a9
11 changed files with 74 additions and 3 deletions

View File

@@ -42,7 +42,11 @@ 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", unlink="image.unlink")
layout.template_ID(ob, "data", open="image.open")
layout.template_image(ob, "data", ob.image_user, compact=True)
row = layout.row(align=True)
row = layout.row(align=True)
layout.prop(ob, "color", text="Transparency", index=3, slider=True)
row = layout.row(align=True)