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>2018-05-23 15:05:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-23 15:11:39 +0300
commitb4b569feebd0c2486808ebb93b5b1fcac8aae749 (patch)
treec09057ec6b9556d4672c7fca5d470f21696f50d8
parentc0ac4791341851cc2435c47b96304de38f88120c (diff)
Cleanup: rename idname -> name
This isn't for ID's
-rw-r--r--source/blender/blenloader/intern/readfile.c2
-rw-r--r--source/blender/blenloader/intern/writefile.c2
-rw-r--r--source/blender/makesdna/DNA_workspace_types.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 6695b6ced37..6d3f95fa63c 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -2886,7 +2886,7 @@ static void lib_link_workspaces(FileData *fd, Main *bmain)
* except when loading linked data. */
Scene *scene = relation->parent;
if (scene->id.lib != NULL) {
- relation->value = BLI_findstring(&scene->view_layers, relation->value_idname, offsetof(ViewLayer, name));
+ relation->value = BLI_findstring(&scene->view_layers, relation->value_name, offsetof(ViewLayer, name));
}
if (relation->value == NULL) {
relation->value = scene->view_layers.first;
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index a1789ac3d5d..d94fe790c9d 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -3601,7 +3601,7 @@ static void write_workspace(WriteData *wd, WorkSpace *workspace)
relation;
relation = relation->next)
{
- STRNCPY(relation->value_idname, ((ViewLayer *)relation->value)->name);
+ STRNCPY(relation->value_name, ((ViewLayer *)relation->value)->name);
}
writestruct(wd, ID_WS, WorkSpace, 1, workspace);
diff --git a/source/blender/makesdna/DNA_workspace_types.h b/source/blender/makesdna/DNA_workspace_types.h
index 784e563486f..83b6867afd3 100644
--- a/source/blender/makesdna/DNA_workspace_types.h
+++ b/source/blender/makesdna/DNA_workspace_types.h
@@ -182,7 +182,7 @@ typedef struct WorkSpaceDataRelation {
void *value;
/** Use when we reference non-ID data, this allows use to look it up when linking in a workspace. */
- char value_idname[64]; /* MAX_NAME. */
+ char value_name[64]; /* MAX_NAME. */
} WorkSpaceDataRelation;
#endif /* DNA_PRIVATE_WORKSPACE_READ_WRITE */