Blender Git Commit Log

Git Commits -> Revision a1031d5

Revision a1031d5 by Bastien Montagne (master)
December 10, 2013, 15:23 (GMT)
Fix T37739: uiList drag-resize was not working as expected outside of panels.

Patch by Brecht, with minor edits by myself, thanks a lot!

Tech details: previous drag-resize handling code was based on the assumption that coords
returned by ui_window_to_block() was relative to the bottom on the uiBlock.
This is in fact completly eroneous, usually this func does not translate at all the coords,
it merely rescale them - except for blocks inside panels, where returned values are relative
to the left/bottom corner of the panel... Pretty confusing, solution for now is to store ref mouse
position in window space, and convert them to block each time, just like current mouse pos.

Commit Details:

Full Hash: a1031d5dd529885fea53b0908a912585d65c4567
Parent Commit: 4b127df
Lines Changed: +41, -49

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2020