[Bf-blender-cvs] [72b9ab5a224] master: Fix T60608: Popup dialogs Y-axis reset after drag

Campbell Barton noreply at git.blender.org
Fri Jan 18 06:57:54 CET 2019


Commit: 72b9ab5a2249468d8e8c663005e655307fc468f8
Author: Campbell Barton
Date:   Fri Jan 18 16:55:18 2019 +1100
Branches: master
https://developer.blender.org/rB72b9ab5a2249468d8e8c663005e655307fc468f8

Fix T60608: Popup dialogs Y-axis reset after drag

Caused by fc32bd729c5b7

===================================================================

M	source/blender/editors/interface/interface_region_popup.c

===================================================================

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));



More information about the Bf-blender-cvs mailing list