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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-22 11:44:02 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-22 11:44:02 +0300
commite59f705308249fa640d7a19a0b2c1ea24382070e (patch)
treea9beb9e950fb045759fc1926e1ee1d8b461811f7
parent85322737baec7f82f4b31a59275985d8e19a261e (diff)
Fix T64981: background images do not come along with linked cameras
-rw-r--r--source/blender/blenloader/intern/readfile.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 77deb8658cd..5edba272cd4 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -10775,6 +10775,15 @@ static void expand_camera(FileData *fd, Main *mainvar, Camera *ca)
{
expand_doit(fd, mainvar, ca->ipo); // XXX deprecated - old animation system
+ for (CameraBGImage *bgpic = ca->bg_images.first; bgpic; bgpic = bgpic->next) {
+ if (bgpic->source == CAM_BGIMG_SOURCE_IMAGE) {
+ expand_doit(fd, mainvar, bgpic->ima);
+ }
+ else if (bgpic->source == CAM_BGIMG_SOURCE_MOVIE) {
+ expand_doit(fd, mainvar, bgpic->ima);
+ }
+ }
+
if (ca->adt) {
expand_animdata(fd, mainvar, ca->adt);
}