diff options
author | Geoffroy Krantz <kgeogeo@hotmail.com> | 2014-01-14 00:57:05 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-01-14 01:18:31 +0400 |
commit | ff98be83a977e54039bfdae405df5a79abafeea7 (patch) | |
tree | 284f4e61bca5a26f8b1a0fbc7af03be7fc4e6857 /source/blender/editors/object | |
parent | e9984653a827f1f5de8e1a1d019854b77afb1ea5 (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 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_add.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index 2e62872724c..c2fbd09281c 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -734,7 +734,8 @@ static int object_empty_add_exec(bContext *C, wmOperator *op) return OPERATOR_CANCELLED; ob = ED_object_add_type(C, OB_EMPTY, loc, rot, FALSE, layer); - ob->empty_drawtype = type; + + BKE_object_empty_draw_type_set(ob, type); return OPERATOR_FINISHED; } |