Blender Git Commit Log

Git Commits -> Revision 9691202

Revision 9691202 by Bastien Montagne (master)
January 9, 2016, 08:29 (GMT)
Fix T47121: Image node on linked and localized material loses image after reopening project.

Code 'localizing' the node of an ID (a material, here) was kind of a joke,
setting id.lib to NULL is not enough, by far! Now calling ntreeMakeLocal().

And ntreeMakeLocal was also missing indirect->extern switch for its directly used IDs,
which explains why they were lost after a save/reload.

Note that here again, a big part of this 'localizing' code should be made generic
using library_query stuff, but this is for id-remap, not current master...

Commit Details:

Full Hash: 969120258532b3a261d42eac9092f2bdfee5cd5f
Parent Commit: 425a4b2
Lines Changed: +12, -1

2 Modified Paths:

/source/blender/blenkernel/intern/library.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/node.c (+11, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021