Cleanup: rename idname -> name
This isn't for ID's
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user