Fix T43159: Copying of linked datablocks using relpath leads to invalid paths in...
authorBastien Montagne <montagne29@wanadoo.fr>
Thu, 8 Jan 2015 13:38:48 +0000 (14:38 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Thu, 8 Jan 2015 13:38:48 +0000 (14:38 +0100)
commit60e70c0c6014e51954473e075a7679ad24648acd
tree55454702573809436f98d5e6dbee2d13325146de
parent72ca9526411797220ea3b14d63d49c72a15ea2c1
Fix T43159: Copying of linked datablocks using relpath leads to invalid paths in new copies.

Simply have to rebase onto main filepath when copying, if source datablock is lib and path is relative.

Afaict, only affected Image and Text datablocks. MovieClip would also be a candidate, but has
no copy implemented currently.
source/blender/blenkernel/BKE_text.h
source/blender/blenkernel/intern/image.c
source/blender/blenkernel/intern/library.c
source/blender/blenkernel/intern/text.c