diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-12-13 08:22:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-12-13 08:22:19 +0300 |
commit | 8ad2642c4717dcfad31626f7eebac325a9827b73 (patch) | |
tree | 2d2ba09f1cd3849adb45eb51a590783a5a9eca02 /source/blender/makesrna/intern/rna_main.c | |
parent | 27231afce5e4d0832113415f4d3cdeed480b165f (diff) |
Cleanup: use "filepath" term for Main, BlendFileData & FileGlobal
Use "filepath" which is the current convention for naming full paths.
- Main use "name" which isn't obviously a file path.
- BlendFileData & FileGlobal used "filename" which is often
used for the name component of a path (without the directory).
Diffstat (limited to 'source/blender/makesrna/intern/rna_main.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_main.c b/source/blender/makesrna/intern/rna_main.c index 464abc6b543..93d7059d2a6 100644 --- a/source/blender/makesrna/intern/rna_main.c +++ b/source/blender/makesrna/intern/rna_main.c @@ -76,20 +76,20 @@ static bool rna_Main_is_dirty_get(PointerRNA *ptr) static void rna_Main_filepath_get(PointerRNA *ptr, char *value) { Main *bmain = (Main *)ptr->data; - BLI_strncpy(value, bmain->name, sizeof(bmain->name)); + BLI_strncpy(value, bmain->filepath, sizeof(bmain->filepath)); } static int rna_Main_filepath_length(PointerRNA *ptr) { Main *bmain = (Main *)ptr->data; - return strlen(bmain->name); + return strlen(bmain->filepath); } # if 0 static void rna_Main_filepath_set(PointerRNA *ptr, const char *value) { Main *bmain = (Main *)ptr->data; - BLI_strncpy(bmain->name, value, sizeof(bmain->name)); + STRNCPY(bmain->filepath, value); } # endif |