[Bf-blender-cvs] [f1516ae637e] master: Cleanup: check is_startup parameters instead of the path

Campbell Barton noreply at git.blender.org
Tue Jul 30 02:42:37 CEST 2019


Commit: f1516ae637e6e86443fbaa95849c2553ab6a421c
Author: Campbell Barton
Date:   Tue Jul 30 10:38:06 2019 +1000
Branches: master
https://developer.blender.org/rBf1516ae637e6e86443fbaa95849c2553ab6a421c

Cleanup: check is_startup parameters instead of the path

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

M	source/blender/blenkernel/intern/blendfile.c

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

diff --git a/source/blender/blenkernel/intern/blendfile.c b/source/blender/blenkernel/intern/blendfile.c
index 6b71e7e8d43..e31494ecb4e 100644
--- a/source/blender/blenkernel/intern/blendfile.c
+++ b/source/blender/blenkernel/intern/blendfile.c
@@ -407,8 +407,8 @@ int BKE_blendfile_read(bContext *C,
   BlendFileData *bfd;
   bool success = false;
 
-  /* don't print user-pref loading */
-  if (strstr(filepath, BLENDER_STARTUP_FILE) == NULL) {
+  /* Don't print startup file loading. */
+  if (params->is_startup == false) {
     printf("Read blend: %s\n", filepath);
   }



More information about the Bf-blender-cvs mailing list