Page MenuHome

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

Authored by Bastien Montagne (mont29) on Jan 8 2015, 4:30 PM.

Details

Summary

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.

Diff Detail

Repository
rB Blender
Branch
lib-names-idcopy-fix

Event Timeline

Bastien Montagne (mont29) retitled this revision from to Fix T43159: Copying of linked datablocks using relpath leads to invalid paths in new copies..
Bastien Montagne (mont29) updated this object.

LGTM, only minor suggestions.

source/blender/blenkernel/BKE_text.h
54

In general we'd like to get rid of G.main use. so passing Main around could be kept. Realize its not always pracitcal. so probably copy functions could take a main arg eventually. just something to keep in mind.

source/blender/blenkernel/intern/action.c
219

Wouldn't bother with the comment here, API name is sensible, think its clear what happens. (function its self can have doc).

Bastien Montagne (mont29) edited edge metadata.

Update for landing...

This revision was automatically updated to reflect the committed changes.