Blender Git Loki
Git Commits -> Revision 066df84
Revision 066df84 by Bastien Montagne (master) October 1, 2015, 13:34 (GMT) |
Fix T46340: Auto scrolling in text editor with upward selection not work. Cleanup and rework a bit text_cursor_set_to_pos_wrapped(), it did not handle correctly negative y valuesi, because it was only checking lines starting from first visible one. Mostly, we now directly get line matching given y position (be it an invisible one) from the helper (renamed `get_line_pos_wrapped()`), instead of first visible one, which allows us to get rid of additional complexity of looping over next lines until we find correct one. This code remains rather complex to follow, added some asserts to ensure everything works as expected, and tested it rather seriously, but DO NOT backport this to 2.76! |
Commit Details:
Full Hash: 066df84f730d213c3e6ea875c202aa46cf1a6642
Parent Commit: 29c2a64
Lines Changed: +56, -52
1 Modified Path:
/source/blender/editors/space_text/text_ops.c (+56, -52) (Diff)