[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59716] branches/soc-2013-ui_replay/source /blender/editors/screen/area.c: Fixed a strict compilation error, mixed declarations and code.
Vincent Akkermans
vincent at ack-err.net
Sun Sep 1 17:51:21 CEST 2013
Revision: 59716
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59716
Author: ack-err
Date: 2013-09-01 15:51:21 +0000 (Sun, 01 Sep 2013)
Log Message:
-----------
Fixed a strict compilation error, mixed declarations and code.
Modified Paths:
--------------
branches/soc-2013-ui_replay/source/blender/editors/screen/area.c
Modified: branches/soc-2013-ui_replay/source/blender/editors/screen/area.c
===================================================================
--- branches/soc-2013-ui_replay/source/blender/editors/screen/area.c 2013-09-01 15:50:16 UTC (rev 59715)
+++ branches/soc-2013-ui_replay/source/blender/editors/screen/area.c 2013-09-01 15:51:21 UTC (rev 59716)
@@ -969,6 +969,8 @@
if (alignment == RGN_ALIGN_FLOAT && ar->regiontype == RGN_TYPE_TOOL_PROPS) {
/* special case for floating tool properties regions */
Panel *pa = NULL;
+ ARegion *mw = BKE_area_find_region_type(sa, RGN_TYPE_WINDOW);
+
for (pa = ar->panels.first; pa; pa = pa->next) {
// TODO: is there a better way to test for the identity of a panel type?
if (pa->type && strcmp(pa->type->idname, "VIEW3D_PT_last_operator") == 0) {
@@ -976,7 +978,6 @@
}
}
- ARegion *mw = BKE_area_find_region_type(sa, RGN_TYPE_WINDOW);
ar->winrct.xmax = mw->winrct.xmax;
ar->winrct.xmin = mw->winrct.xmax - (ar->type ? ar->type->prefsizex : 160);
ar->winrct.ymin = mw->winrct.ymin;
More information about the Bf-blender-cvs
mailing list