Merge branch 'blender2.7'
[blender.git] / source / blender / blenkernel / intern / library_remap.c
index e0e473978f8bd08b00eb97fd879cdb7bd1b8a687..802f13ea69fa3dd3403692b258d11aeb3abca0e5 100644 (file)
@@ -287,6 +287,13 @@ static int foreach_libblock_remap_callback(void *user_data, ID *id_self, ID **id
       if (!is_indirect || is_obj_proxy) {
         id_remap_data->status |= ID_REMAP_IS_LINKED_DIRECT;
       }
+      /* We need to remap proxy_from pointer of remapped proxy... sigh. */
+      if (is_obj_proxy && new_id != NULL) {
+        Object *ob = (Object *)id;
+        if (ob->proxy == (Object *)new_id) {
+          ob->proxy->proxy_from = ob;
+        }
+      }
     }
   }