mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-27 22:10:06 +00:00
Changed the hud to ignore mouse clicks when not visible.
This commit is contained in:
parent
8990d5712f
commit
35a4d45cf2
@ -126,6 +126,10 @@ Hud::KeyDown(int key)
|
||||
bool
|
||||
Hud::MouseClick(int x, int y)
|
||||
{
|
||||
if (!IsVisible()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (std::vector<RadioButton>::iterator it = _radioButtons.begin();
|
||||
it != _radioButtons.end(); ++it) {
|
||||
if (hitTest(*it, x, y)) {
|
||||
|
Loading…
Reference in New Issue
Block a user