diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-18 08:55:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-18 08:56:56 +0300 |
commit | 72b9ab5a2249468d8e8c663005e655307fc468f8 (patch) | |
tree | 54f34e55806d9f2f88566de4539712aa022694d9 | |
parent | 61036ca179bdfa57c13a81178cabad6d17717386 (diff) |
Fix T60608: Popup dialogs Y-axis reset after drag
Caused by fc32bd729c5b7
-rw-r--r-- | source/blender/editors/interface/interface_region_popup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_region_popup.c b/source/blender/editors/interface/interface_region_popup.c index 8e55bb928a7..ac0b06d8273 100644 --- a/source/blender/editors/interface/interface_region_popup.c +++ b/source/blender/editors/interface/interface_region_popup.c @@ -75,6 +75,10 @@ void ui_popup_translate(ARegion *ar, const int mdiff[2]) /* update blocks */ for (block = ar->uiblocks.first; block; block = block->next) { + uiPopupBlockHandle *handle = block->handle; + /* Make empty, will be initialized on next use, see T60608. */ + BLI_rctf_init(&handle->prev_block_rect, 0, 0, 0, 0); + uiSafetyRct *saferct; for (saferct = block->saferct.first; saferct; saferct = saferct->next) { BLI_rctf_translate(&saferct->parent, UNPACK2(mdiff)); |