Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffroy Krantz <kgeogeo@hotmail.com>2014-01-14 00:57:05 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-14 01:18:31 +0400
commitff98be83a977e54039bfdae405df5a79abafeea7 (patch)
tree284f4e61bca5a26f8b1a0fbc7af03be7fc4e6857 /release/scripts/startup/bl_ui/properties_data_empty.py
parente9984653a827f1f5de8e1a1d019854b77afb1ea5 (diff)
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
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_empty.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_empty.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_empty.py b/release/scripts/startup/bl_ui/properties_data_empty.py
index c781873e16c..b19fce1c7d0 100644
--- a/release/scripts/startup/bl_ui/properties_data_empty.py
+++ b/release/scripts/startup/bl_ui/properties_data_empty.py
@@ -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)