diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-05-22 10:23:17 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-05-23 00:33:27 +0300 |
commit | 5a3c44937f64776099125577126766c67f96139a (patch) | |
tree | f67e401370c3b2ca266ff3f19e1f335cad4e68e4 /source/blender/windowmanager/intern | |
parent | b471e48c305b6fdee69a862b50547a59dd368c4d (diff) |
Fix T64764: 'Reload' on linked libraries disconnects proxy armature datablocks.
Note that this only fixes the core issue reported (caused by own dummy
mistake in rBd0df7fb3b94ea), investigating that report uncovered at leat
two more issues, including a crasher (when reloading after an undo)...
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files_link.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_files_link.c b/source/blender/windowmanager/intern/wm_files_link.c index 0cb3e5e3088..1a46a4550d9 100644 --- a/source/blender/windowmanager/intern/wm_files_link.c +++ b/source/blender/windowmanager/intern/wm_files_link.c @@ -729,7 +729,10 @@ static void lib_relocate_do(Main *bmain, } if (new_id) { #ifdef PRINT_DEBUG - printf("before remap, old_id users: %d, new_id users: %d\n", old_id->us, new_id->us); + printf("before remap of %s, old_id users: %d, new_id users: %d\n", + old_id->name, + old_id->us, + new_id->us); #endif BKE_libblock_remap_locked(bmain, old_id, new_id, remap_flags); @@ -739,7 +742,10 @@ static void lib_relocate_do(Main *bmain, } #ifdef PRINT_DEBUG - printf("after remap, old_id users: %d, new_id users: %d\n", old_id->us, new_id->us); + printf("after remap of %s, old_id users: %d, new_id users: %d\n", + old_id->name, + old_id->us, + new_id->us); #endif /* In some cases, new_id might become direct link, remove parent of library in this case. */ |