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/blenkernel/intern/depsgraph.c | |
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/blenkernel/intern/depsgraph.c')
-rw-r--r-- | source/blender/blenkernel/intern/depsgraph.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c index ea76ff291e5..b9cbd6d2019 100644 --- a/source/blender/blenkernel/intern/depsgraph.c +++ b/source/blender/blenkernel/intern/depsgraph.c @@ -65,6 +65,7 @@ #include "BKE_fcurve.h" #include "BKE_global.h" #include "BKE_group.h" +#include "BKE_image.h" #include "BKE_key.h" #include "BKE_library.h" #include "BKE_main.h" @@ -1952,6 +1953,12 @@ static void dag_object_time_update_flags(Main *bmain, Scene *scene, Object *ob) case OB_MBALL: if (ob->transflag & OB_DUPLI) ob->recalc |= OB_RECALC_DATA; break; + case OB_EMPTY: + /* update animated images */ + if (ob->empty_drawtype == OB_EMPTY_IMAGE && ob->data) + if (BKE_image_is_animated(ob->data)) + ob->recalc |= OB_RECALC_DATA; + break; } if (animdata_use_time(adt)) { |