[Bf-blender-cvs] [466cc3fbe40] master: Fix invalid state after calling append/link operator without any items
Brecht Van Lommel
noreply at git.blender.org
Wed Jul 3 20:45:23 CEST 2019
Commit: 466cc3fbe406cb81c6ca48e29b74e5d6d59e18ba
Author: Brecht Van Lommel
Date: Wed Jul 3 20:40:33 2019 +0200
Branches: master
https://developer.blender.org/rB466cc3fbe406cb81c6ca48e29b74e5d6d59e18ba
Fix invalid state after calling append/link operator without any items
===================================================================
M source/blender/windowmanager/intern/wm_files_link.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_files_link.c b/source/blender/windowmanager/intern/wm_files_link.c
index 1a46a4550d9..069dc8f441f 100644
--- a/source/blender/windowmanager/intern/wm_files_link.c
+++ b/source/blender/windowmanager/intern/wm_files_link.c
@@ -464,6 +464,8 @@ static int wm_link_append_exec(bContext *C, wmOperator *op)
if (lapp_data->num_items == 0) {
/* Early out in case there is nothing to link. */
wm_link_append_data_free(lapp_data);
+ /* Clear pre existing tag. */
+ BKE_main_id_tag_all(bmain, LIB_TAG_PRE_EXISTING, false);
return OPERATOR_CANCELLED;
}
More information about the Bf-blender-cvs
mailing list