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:
authorCampbell Barton <ideasman42@gmail.com>2018-06-12 18:26:38 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-12 18:26:38 +0300
commit760e79d8092a121b9d0e1cd02019478c808acae9 (patch)
treedfd5050507b6a3c87a7314abd805fc792083c947 /source/blender/editors/screen/area.c
parentec4ce908db6124037c4dfd927f22a9eec0ba4d52 (diff)
WM: rename BKE_regiontype_from_id
This returns the first as a fallback, causing confusing usage. Renamed and added a version of the function that doesn't.
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r--source/blender/editors/screen/area.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 3f365fc1500..6e4cbf27e28 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -1452,7 +1452,7 @@ void ED_area_initialize(wmWindowManager *wm, wmWindow *win, ScrArea *sa)
}
for (ar = sa->regionbase.first; ar; ar = ar->next)
- ar->type = BKE_regiontype_from_id(sa->type, ar->regiontype);
+ ar->type = BKE_regiontype_from_id_or_first(sa->type, ar->regiontype);
/* area sizes */
area_calc_totrct(sa, WM_window_pixels_x(win), WM_window_pixels_y(win));