Fix T43159: Copying of linked datablocks using relpath leads to invalid paths in new copies.

Propper fix reverting most of rB60e70c0c6014e5, which was only partial specific fix.
This code uses generic `BKE_id_lib_local_paths()` func to handle all possible paths.

Reviewers: sergey, campbellbarton

Differential Revision: https://developer.blender.org/D977
This commit is contained in:
2015-01-09 09:52:51 +01:00
parent 1b8240f5af
commit 95847f6ac7
22 changed files with 92 additions and 18 deletions

View File

@@ -67,6 +67,10 @@ Speaker *BKE_speaker_copy(Speaker *spk)
if (spkn->sound)
spkn->sound->id.us++;
if (spk->id.lib) {
BKE_id_lib_local_paths(G.main, spk->id.lib, &spkn->id);
}
return spkn;
}