Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-03-23 02:32:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-03-23 02:42:09 +0300
commit12b62b58e102ed9dea683d1598d3f1b1811a2a95 (patch)
treee5ce888408c3d7ae7b1d3d57d5920b89fb2fb77b /source/blender/blenkernel/intern/blendfile.c
parent762319e911843e0014d8395b558203a8638d656a (diff)
Cleanup: minor wm_homefile_read simplification
Logic in this function is a bit scattered, minor changes to avoid confusion. Also rename 'from_memory' to 'use_factory_settings'.
Diffstat (limited to 'source/blender/blenkernel/intern/blendfile.c')
-rw-r--r--source/blender/blenkernel/intern/blendfile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/blendfile.c b/source/blender/blenkernel/intern/blendfile.c
index 5725a12e3d4..6bcd3c8fb65 100644
--- a/source/blender/blenkernel/intern/blendfile.c
+++ b/source/blender/blenkernel/intern/blendfile.c
@@ -356,8 +356,10 @@ int BKE_blendfile_read(
BlendFileData *bfd;
int retval = BKE_BLENDFILE_READ_OK;
- if (strstr(filepath, BLENDER_STARTUP_FILE) == NULL) /* don't print user-pref loading */
- printf("read blend: %s\n", filepath);
+ /* don't print user-pref loading */
+ if (strstr(filepath, BLENDER_STARTUP_FILE) == NULL) {
+ printf("Read blend: %s\n", filepath);
+ }
bfd = BLO_read_from_file(filepath, reports, skip_flags);
if (bfd) {