Fix T60855: workspace duplicate does not preserve addons filters.
This commit is contained in:
parent
57777b9542
commit
b5349d967f
Notes:
blender-bot
2023-02-14 08:06:38 +01:00
Referenced by issue #60855, Workspace duplicating - Addons filter won't duplicate too
|
@ -203,6 +203,9 @@ WorkSpace *ED_workspace_duplicate(
|
|||
ListBase *layouts_old = BKE_workspace_layouts_get(workspace_old);
|
||||
WorkSpace *workspace_new = ED_workspace_add(bmain, workspace_old->id.name + 2);
|
||||
|
||||
workspace_new->flags = workspace_old->flags;
|
||||
BLI_duplicatelist(&workspace_new->owner_ids, &workspace_old->owner_ids);
|
||||
|
||||
/* TODO(campbell): tools */
|
||||
|
||||
for (WorkSpaceLayout *layout_old = layouts_old->first; layout_old; layout_old = layout_old->next) {
|
||||
|
|
|
@ -133,7 +133,7 @@ typedef struct WorkSpace {
|
|||
|
||||
/* Feature tagging (use for addons) */
|
||||
/** #wmOwnerID. */
|
||||
ListBase owner_ids DNA_PRIVATE_WORKSPACE_READ_WRITE;
|
||||
ListBase owner_ids;
|
||||
|
||||
/* should be: '#ifdef USE_WORKSPACE_TOOL'. */
|
||||
|
||||
|
@ -151,7 +151,7 @@ typedef struct WorkSpace {
|
|||
int object_mode;
|
||||
|
||||
/** Enum eWorkSpaceFlags. */
|
||||
int flags DNA_PRIVATE_WORKSPACE;
|
||||
int flags;
|
||||
|
||||
/* Number for workspace tab reordering in the UI. */
|
||||
int order;
|
||||
|
|
Loading…
Reference in New Issue