Blender Git Loki

Git Commits -> Revision eee8bf3

Revision eee8bf3 by Martin Poirier (master)
November 26, 2009, 02:58 (GMT)
Cursor Grab bugfix: passing NULL for bounds didn't initialize properly.

Symptom: first button drag gets stuck on values.

Cause: Buttons didn't set grab bounds, to use the whole window. But Ghost didn't do anything in that case, it left the bounds value as is. It only affected the first cursor grab, because cursor ungrab sets it to -1, which forces it to use the whole window size (checking every mouse move) for subsequent grabs.

Solution: When NULL, init bounds to window size (and don't query every mouse move).

Commit Details:

Full Hash: eee8bf344acaae83af294774f1d90b0d07f53fc7
SVN Revision: 24906
Parent Commit: cbc2c18
Lines Changed: +2, -0

1 Modified Path:

/intern/ghost/intern/GHOST_Window.cpp (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021