[Bf-blender-cvs] [b5372e3e370] master: Cleanup: don't do nodetree verification/versioning twice.

Brecht Van Lommel noreply at git.blender.org
Thu Jan 3 18:31:45 CET 2019


Commit: b5372e3e3704bdf5d30faeb6aba8a92230592e65
Author: Brecht Van Lommel
Date:   Thu Jan 3 17:58:59 2019 +0100
Branches: master
https://developer.blender.org/rBb5372e3e3704bdf5d30faeb6aba8a92230592e65

Cleanup: don't do nodetree verification/versioning twice.

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

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

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

diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index dd3ce16f3f4..ebd8d2bd06b 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -9062,16 +9062,17 @@ BlendFileData *blo_read_file_internal(FileData *fd, const char *filepath)
 
 	BKE_main_id_tag_all(bfd->main, LIB_TAG_NEW, false);
 
+	/* Before static overrides, which needs typeinfo. */
+	lib_verify_nodetree(bfd->main, true);
+
 	/* Now that all our data-blocks are loaded, we can re-generate overrides from their references. */
 	if (fd->memfile == NULL) {
 		/* Do not apply in undo case! */
-		lib_verify_nodetree(bfd->main, true);  /* Needed to ensure we have typeinfo in nodes... */
 		BKE_main_override_static_update(bfd->main);
 	}
 
 	BKE_collections_after_lib_link(bfd->main);
 
-	lib_verify_nodetree(bfd->main, true);
 	fix_relpaths_library(fd->relabase, bfd->main); /* make all relative paths, relative to the open blend file */
 
 	link_global(fd, bfd);   /* as last */



More information about the Bf-blender-cvs mailing list