diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-04-07 21:35:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-04-07 21:35:47 +0400 |
commit | 76420c2fecdd57acf4fe0440fb681cf8f46707e4 (patch) | |
tree | a2ce3b28bf0d93aa4b2e241cc36a949f364d2a82 /source/blender/python/api2_2x/Library.c | |
parent | 4fae78f8d9e1acd55a5d068ea4f161687c8efc0c (diff) |
appending libdata no longer breaks all external references.
Existing data is flagged with LIB_APPEND_TAG and all_local only has an option to only operate on un-flagged data.
If you append an object thats linked to a material alredy linked in your scene, the material will not be made local.
So at worst youll need to make local some of the datablocks.
This is fairly simple and though my tests show it to work, do some tests on your own libraries before assuming its problem free.
scripttemplate_mesh_edit wasnt updated with PyAPI changes and moved some functions into generic places.
Diffstat (limited to 'source/blender/python/api2_2x/Library.c')
-rw-r--r-- | source/blender/python/api2_2x/Library.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Library.c b/source/blender/python/api2_2x/Library.c index daccf31489e..dd7cf18cb3d 100644 --- a/source/blender/python/api2_2x/Library.c +++ b/source/blender/python/api2_2x/Library.c @@ -416,7 +416,7 @@ static PyObject *M_Library_Update( PyObject * self ) break; lib = lib->id.next; } - all_local( lib ); + all_local( lib, 0 ); } Py_INCREF( Py_None ); @@ -620,7 +620,7 @@ PyObject *LibraryData_importLibData( BPy_LibraryData *self, char *name, for( lib = G.main->library.first; lib; lib = lib->id.next ) if( strcmp( longFilename, lib->name ) == 0 ) { if( mode != FILE_LINK ) { - all_local( lib ); + all_local( lib, 0 ); lib = NULL; } break; |