[Bf-blender-cvs] [843271d0a5a] master: Library reload code: add early out in case there is nothing to reload.

Bastien Montagne noreply at git.blender.org
Wed Feb 7 21:53:11 CET 2018


Commit: 843271d0a5adec1059f91f7fd8854936a1228807
Author: Bastien Montagne
Date:   Wed Feb 7 21:52:38 2018 +0100
Branches: master
https://developer.blender.org/rB843271d0a5adec1059f91f7fd8854936a1228807

Library reload code: add early out in case there is nothing to reload.

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

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 05c569cbaac..dca1077ebc7 100644
--- a/source/blender/windowmanager/intern/wm_files_link.c
+++ b/source/blender/windowmanager/intern/wm_files_link.c
@@ -590,6 +590,11 @@ static void lib_relocate_do(
 		}
 	}
 
+	if (lapp_data->num_items == 0) {
+		/* Early out in case there is nothing to do. */
+		return;
+	}
+
 	BKE_main_id_tag_all(bmain, LIB_TAG_PRE_EXISTING, true);
 
 	/* We do not want any instanciation here! */



More information about the Bf-blender-cvs mailing list