Merge branch 'master' into blender2.8
This commit is contained in:
@@ -2509,6 +2509,12 @@ static void lib_link_action(FileData *fd, Main *main)
|
||||
// >>> XXX deprecated - old animation system
|
||||
|
||||
lib_link_fcurves(fd, &act->id, &act->curves);
|
||||
|
||||
for (TimeMarker *marker = act->markers.first; marker; marker = marker->next) {
|
||||
if (marker->camera) {
|
||||
marker->camera = newlibadr(fd, act->id.lib, marker->camera);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5226,7 +5232,6 @@ static void lib_link_scene(FileData *fd, Main *main)
|
||||
Base *base, *next;
|
||||
Sequence *seq;
|
||||
SceneRenderLayer *srl;
|
||||
TimeMarker *marker;
|
||||
FreestyleModuleConfig *fmc;
|
||||
FreestyleLineSet *fls;
|
||||
|
||||
@@ -5325,15 +5330,11 @@ static void lib_link_scene(FileData *fd, Main *main)
|
||||
}
|
||||
SEQ_END
|
||||
|
||||
#ifdef DURIAN_CAMERA_SWITCH
|
||||
for (marker = sce->markers.first; marker; marker = marker->next) {
|
||||
for (TimeMarker *marker = sce->markers.first; marker; marker = marker->next) {
|
||||
if (marker->camera) {
|
||||
marker->camera = newlibadr(fd, sce->id.lib, marker->camera);
|
||||
}
|
||||
}
|
||||
#else
|
||||
(void)marker;
|
||||
#endif
|
||||
|
||||
BKE_sequencer_update_muting(sce->ed);
|
||||
BKE_sequencer_update_sound_bounds_all(sce);
|
||||
@@ -8461,6 +8462,12 @@ static void expand_action(FileData *fd, Main *mainvar, bAction *act)
|
||||
|
||||
/* F-Curves in Action */
|
||||
expand_fcurves(fd, mainvar, &act->curves);
|
||||
|
||||
for (TimeMarker *marker = act->markers.first; marker; marker = marker->next) {
|
||||
if (marker->camera) {
|
||||
expand_doit(fd, mainvar, marker->camera);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void expand_keyingsets(FileData *fd, Main *mainvar, ListBase *list)
|
||||
@@ -9035,17 +9042,11 @@ static void expand_scene(FileData *fd, Main *mainvar, Scene *sce)
|
||||
expand_doit(fd, mainvar, sce->rigidbody_world->constraints);
|
||||
}
|
||||
|
||||
#ifdef DURIAN_CAMERA_SWITCH
|
||||
{
|
||||
TimeMarker *marker;
|
||||
|
||||
for (marker = sce->markers.first; marker; marker = marker->next) {
|
||||
if (marker->camera) {
|
||||
expand_doit(fd, mainvar, marker->camera);
|
||||
}
|
||||
for (TimeMarker *marker = sce->markers.first; marker; marker = marker->next) {
|
||||
if (marker->camera) {
|
||||
expand_doit(fd, mainvar, marker->camera);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
expand_doit(fd, mainvar, sce->clip);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user