[Bf-blender-cvs] [345fb22ea3f] master: Fix T64238: Scene Full Copy: Cameras bound to markers does not update.

Bastien Montagne noreply at git.blender.org
Mon Sep 16 10:05:39 CEST 2019


Commit: 345fb22ea3f72f80ccb46f78cabc64d6d1bc5245
Author: Bastien Montagne
Date:   Mon Sep 16 10:03:41 2019 +0200
Branches: master
https://developer.blender.org/rB345fb22ea3f72f80ccb46f78cabc64d6d1bc5245

Fix T64238: Scene Full Copy: Cameras bound to markers does not update.

That's exactly why we should get rid of all those 'custom cases'
remapping code, it's hard enough to keep a single place
(library_query.c) up to date and 100% valid, but having more areas doing
their own remapping is just impossible to maintain... Some day...

===================================================================

M	source/blender/editors/object/object_relations.c

===================================================================

diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c
index 0d20a07dcee..10ed26fcf59 100644
--- a/source/blender/editors/object/object_relations.c
+++ b/source/blender/editors/object/object_relations.c
@@ -1817,6 +1817,10 @@ static void single_object_users(
   if (v3d) {
     ID_NEW_REMAP(v3d->camera);
   }
+  /* Camera pointers of markers. */
+  for (TimeMarker *marker = scene->markers.first; marker; marker = marker->next) {
+    ID_NEW_REMAP(marker->camera);
+  }
 
   /* Making single user may affect other scenes if they share
    * with current one some collections in their ViewLayer. */



More information about the Bf-blender-cvs mailing list