allow to write to libraries that are indirectly linked

This commit is contained in:
2008-07-21 17:05:59 +00:00
parent 4ae4ecd3ce
commit 78ce90b752
2 changed files with 2 additions and 2 deletions

View File

@@ -708,7 +708,7 @@ static PyObject *Blender_Save( PyObject * self, PyObject * args )
"expected filename and optional int (overwrite flag) as arguments" );
for( li = G.main->library.first; li; li = li->id.next ) {
if( BLI_streq( li->name, fname ) ) {
if( li->parent==NULL && BLI_streq( li->name, fname ) ) {
return EXPP_ReturnPyObjError( PyExc_AttributeError,
"cannot overwrite used library" );
}