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:
authorAntonio Vazquez <blendergit@gmail.com>2020-05-14 13:28:45 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-05-14 13:29:44 +0300
commita88316b4a6e93bdda210ec050928fd2e2eee0d5e (patch)
treed93b4ac13ecbba7d23d8c197384af8356ec3cd41
parent7d38f5036794e7bf2678c8138b940257b152435b (diff)
Cleanup: Remove uneeded loop
The Region loop was not required.
-rw-r--r--source/blender/blenloader/intern/versioning_defaults.c24
1 files changed, 11 insertions, 13 deletions
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;
}
}
}