From a88316b4a6e93bdda210ec050928fd2e2eee0d5e Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Thu, 14 May 2020 12:28:45 +0200 Subject: Cleanup: Remove uneeded loop The Region loop was not required. --- .../blenloader/intern/versioning_defaults.c | 24 ++++++++++------------ 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index 9309a529ccf..b404ec4a2c0 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -230,19 +230,17 @@ static void blo_update_defaults_screen(bScreen *screen, /* 2D animation template. */ if (app_template && STREQ(app_template, "2D_Animation")) { LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) { - LISTBASE_FOREACH (ARegion *, region, &area->regionbase) { - if (area->spacetype == SPACE_ACTION) { - SpaceAction *saction = area->spacedata.first; - /* Enable Sliders. */ - saction->flag |= SACTION_SLIDERS; - } - else if (area->spacetype == SPACE_VIEW3D) { - View3D *v3d = area->spacedata.first; - /* Set Material Color by default. */ - v3d->shading.color_type = V3D_SHADING_MATERIAL_COLOR; - /* Enable Annotations. */ - v3d->flag2 |= V3D_SHOW_ANNOTATION; - } + if (area->spacetype == SPACE_ACTION) { + SpaceAction *saction = area->spacedata.first; + /* Enable Sliders. */ + saction->flag |= SACTION_SLIDERS; + } + else if (area->spacetype == SPACE_VIEW3D) { + View3D *v3d = area->spacedata.first; + /* Set Material Color by default. */ + v3d->shading.color_type = V3D_SHADING_MATERIAL_COLOR; + /* Enable Annotations. */ + v3d->flag2 |= V3D_SHOW_ANNOTATION; } } } -- cgit v1.2.3