From 2735f6fda66076c34f853afaccfc4dd78f66ca1f Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 18 Aug 2015 13:18:50 +0200 Subject: Replace 'BLO_is_a_library' by 'BLO_library_path_explode'. This new func will be fully used by upcomming code (it mostly adds the extraction of library item name as well as library file and ID group). --- source/blender/windowmanager/intern/wm_operators.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/windowmanager') diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index f5706c1cab4..6443651949e 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -2610,7 +2610,7 @@ static int wm_link_append_exec(bContext *C, wmOperator *op) RNA_string_get(op->ptr, "directory", dir); /* test if we have a valid data */ - if (BLO_is_a_library(dir, libname, group) == 0) { + if (BLO_library_path_explode(dir, libname, group, NULL) == 0) { BKE_report(op->reports, RPT_ERROR, "Not a library"); return OPERATOR_CANCELLED; } -- cgit v1.2.3