mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-16 00:34:50 -04:00
logic error
This commit is contained in:
parent
31773972b4
commit
4e9a2fec77
@ -210,10 +210,8 @@ INLINE bool overlap(GuiRegion* a, GuiRegion* b) {
|
|||||||
LVector4f av = a->get_frame();
|
LVector4f av = a->get_frame();
|
||||||
LVector4f bv = b->get_frame();
|
LVector4f bv = b->get_frame();
|
||||||
|
|
||||||
if (in_range(av[0], bv[0], bv[1]) ||
|
if ((in_range(av[0], bv[0], bv[1]) || in_range(av[1], bv[0], bv[1])) &&
|
||||||
in_range(av[1], bv[0], bv[1]) ||
|
(in_range(av[2], bv[2], bv[3]) || in_range(av[3], bv[2], bv[3])))
|
||||||
in_range(av[2], bv[2], bv[3]) ||
|
|
||||||
in_range(av[3], bv[2], bv[3]))
|
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user