[Bf-blender-cvs] [b87e275] asset-engine: WIP more AE/uuid in append/link operator.
Bastien Montagne
noreply at git.blender.org
Thu May 28 14:46:24 CEST 2015
Commit: b87e27542916ad645c9b7991c1d6b7c6c170a767
Author: Bastien Montagne
Date: Thu May 28 10:37:01 2015 +0200
Branches: asset-engine
https://developer.blender.org/rBb87e27542916ad645c9b7991c1d6b7c6c170a767
WIP more AE/uuid in append/link operator.
===================================================================
M source/blender/windowmanager/intern/wm_operators.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 9c40c69..4d545a3 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -2624,11 +2624,19 @@ static int wm_link_append_exec(bContext *C, wmOperator *op)
int idcode, totfiles = 0;
short flag;
+ char asset_engine[BKE_ST_MAXNAME];
+ AssetEngineType *aet = NULL;
+
GSet *todo_libraries = NULL;
RNA_string_get(op->ptr, "filename", relname);
RNA_string_get(op->ptr, "directory", dir);
+ RNA_string_get(op->ptr, "asset_engine", asset_engine);
+ if (asset_engine[0] != '\0') {
+ aet = BKE_asset_engines_find(asset_engine);
+ }
+
BLI_join_dirfile(path, sizeof(path), dir, relname);
/* test if we have a valid data */
More information about the Bf-blender-cvs
mailing list