Blender Git Loki

Git Commits -> Revision 6cee660

Revision 6cee660 by Campbell Barton (master)
August 18, 2015, 04:16 (GMT)
UI: avoid subtracting shadow from winrct

For popup interactions we need to know if events are in the region or not,
however subtracting the shadow isn't so reliable, since its not always added to all sides of a popup.

Instead, get the winrct value from a popup using the block rect, otherwise the winrct as-is.

Commit Details:

Full Hash: 6cee6607a2d3013445dfb9e82a37d6738d199b07
Parent Commit: a08f8a4
Lines Changed: +36, -24

5 Modified Paths:

/source/blender/blenlib/BLI_rect.h (+1, -0) (Diff)
/source/blender/blenlib/intern/rct.c (+8, -0) (Diff)
/source/blender/editors/interface/interface.c (+19, -10) (Diff)
/source/blender/editors/interface/interface_handlers.c (+7, -14) (Diff)
/source/blender/editors/interface/interface_intern.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021