[Bf-blender-cvs] [a88316b4a6e] blender-v2.83-release: Cleanup: Remove uneeded loop
Antonio Vazquez
noreply at git.blender.org
Thu May 14 12:30:15 CEST 2020
Commit: a88316b4a6e93bdda210ec050928fd2e2eee0d5e
Author: Antonio Vazquez
Date: Thu May 14 12:28:45 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rBa88316b4a6e93bdda210ec050928fd2e2eee0d5e
Cleanup: Remove uneeded loop
The Region loop was not required.
===================================================================
M source/blender/blenloader/intern/versioning_defaults.c
===================================================================
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;
}
}
}
More information about the Bf-blender-cvs
mailing list