[Bf-blender-cvs] [82359a7] asset-engine: Do not update asset repo info inside link code.

Bastien Montagne noreply at git.blender.org
Fri May 6 11:09:46 CEST 2016


Commit: 82359a7997ace8b92e9d12b69dd7de70bd78ebcd
Author: Bastien Montagne
Date:   Fri May 6 11:07:53 2016 +0200
Branches: asset-engine
https://developer.blender.org/rB82359a7997ace8b92e9d12b69dd7de70bd78ebcd

Do not update asset repo info inside link code.

Whole 'database' is rebuilt later anyway, and in more complex 'asset reload' cases
(where we may actually be reloading same asset with same uuid from same lib file),
this creates confusion...

===================================================================

M	source/blender/blenloader/intern/readfile.c

===================================================================

diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index b4e55de..7799adf 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -9808,7 +9808,6 @@ static ID *link_named_part_ex(
 		if (!mainl->curlib->asset_repository) {
 			BKE_library_asset_repository_init(mainl->curlib, aet, root);
 		}
-		BKE_library_asset_repository_asset_add(mainl->curlib, id);
 	}
 
 	return id;




More information about the Bf-blender-cvs mailing list