diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-30 16:22:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-30 16:22:02 +0400 |
commit | 54223ed05b7e2840865b5e46ed6d43573ff2b4ae (patch) | |
tree | 318ecb1a6b2afa8278829f06dfb0a50c0de06b36 /source/blender/editors/util/undo.c | |
parent | c8015a27888a4c87360b1af158fc9b70bd4112ae (diff) |
Add active region for operator execution.
This means you can for example, uv unwrap in quad-view and change settings in the toolbar without defaulting back to the first quad-view region available.
This may be displayed to the user later, for now this is set on executing registrable operators.
Diffstat (limited to 'source/blender/editors/util/undo.c')
-rw-r--r-- | source/blender/editors/util/undo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/util/undo.c b/source/blender/editors/util/undo.c index e3d35807862..8a0ef06ef12 100644 --- a/source/blender/editors/util/undo.c +++ b/source/blender/editors/util/undo.c @@ -341,7 +341,7 @@ int ED_undo_operator_repeat(bContext *C, struct wmOperator *op) /* keep in sync with logic in view3d_panel_operator_redo() */ ARegion *ar = CTX_wm_region(C); - ARegion *ar1 = BKE_area_find_region_type(CTX_wm_area(C), RGN_TYPE_WINDOW); + ARegion *ar1 = BKE_area_find_region_active_win(CTX_wm_area(C)); if (ar1) CTX_wm_region_set(C, ar1); |