diff --git a/panda/src/gui/guiButton.I b/panda/src/gui/guiButton.I index 68e1865046..07c8973297 100644 --- a/panda/src/gui/guiButton.I +++ b/panda/src/gui/guiButton.I @@ -52,7 +52,6 @@ INLINE void GuiButton::up(void) { gui_cat->warning() << "got up from invalid state (" << (int)_state << ")," << " button '" << this->get_name() << "'" << endl; } - this->reset_behavior(); } INLINE void GuiButton::down(void) { diff --git a/panda/src/gui/guiButton.cxx b/panda/src/gui/guiButton.cxx index 0427f3df78..d70945885a 100644 --- a/panda/src/gui/guiButton.cxx +++ b/panda/src/gui/guiButton.cxx @@ -466,6 +466,7 @@ void GuiButton::stop_behavior(void) { } void GuiButton::reset_behavior(void) { + gui_cat->debug() << this->get_name() << "::reset_behavior()" << endl; GuiBehavior::reset_behavior(); if (_mgr == (GuiManager*)0L) return;