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:
authorHans Goudey <h.goudey@me.com>2020-08-20 16:34:09 +0300
committerHans Goudey <h.goudey@me.com>2020-08-20 16:34:09 +0300
commitf9697543e43b74074727a89f9dc1bc9717536c46 (patch)
treed3d3b4c90b497f4fe3ae950f8122caaad044ab60 /source/blender/editors/screen/workspace_edit.c
parent52f40bcff21b285b7eaa21aaa9c6c7b9d6fa8669 (diff)
Revert "Cleanup: Use LISTBASE_FOREACH in editors screen directory"
This reverts commit 52f40bcff21b285b7eaa21aaa9c6c7b9d6fa8669. Apologies for the noise. I caught a problem with this that I hadn't before. I will commit later after thorough testing.
Diffstat (limited to 'source/blender/editors/screen/workspace_edit.c')
-rw-r--r--source/blender/editors/screen/workspace_edit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/screen/workspace_edit.c b/source/blender/editors/screen/workspace_edit.c
index b93734272bc..b20dc80d158 100644
--- a/source/blender/editors/screen/workspace_edit.c
+++ b/source/blender/editors/screen/workspace_edit.c
@@ -409,7 +409,8 @@ static void workspace_add_menu(bContext *UNUSED(C), uiLayout *layout, void *temp
WorkspaceConfigFileData *builtin_config = workspace_system_file_read(app_template);
if (startup_config) {
- LISTBASE_FOREACH (WorkSpace *, workspace, &startup_config->workspaces) {
+ for (WorkSpace *workspace = startup_config->workspaces.first; workspace;
+ workspace = workspace->id.next) {
uiLayout *row = uiLayoutRow(layout, false);
workspace_append_button(row, ot_append, workspace, startup_config->main);
has_startup_items = true;
@@ -419,7 +420,8 @@ static void workspace_add_menu(bContext *UNUSED(C), uiLayout *layout, void *temp
if (builtin_config) {
bool has_title = false;
- LISTBASE_FOREACH (WorkSpace *, workspace, &startup_config->workspaces) {
+ for (WorkSpace *workspace = builtin_config->workspaces.first; workspace;
+ workspace = workspace->id.next) {
if (startup_config &&
BLI_findstring(&startup_config->workspaces, workspace->id.name, offsetof(ID, name))) {
continue;