Open GoogleCodeExporter opened 9 years ago
Hi Thierry,
Thanks for the catch.
After looking at the issue closer, I think it's just a problem of documentation
for
the Panel.
This is the way I designed the panel calls:
static bool isUnfold = true;
if ( ui.beginPanel( Rect, "The panel Name", &isUnfold ) )
{
// Do some stuff in the unfold panel
// End the panel since it is unfold
ui.endPanel();
}
// if the Panel is not unfold, there is nothing to do
And then it works just fine.
I suspect you are doing always the calls beginPanel / endPanel no matter the
panel is
unfold or not.
I agree that there is a naming issue here, a good documentation would be a
minimum
What's your opinion ?
Thanks,
Sam
Original comment by samuel.g...@gmail.com
on 23 Jan 2009 at 7:50
[deleted comment]
Ok, i wasn't thinking straight. It indeed does the trick.
On top of a bit of documentation, a feedback mechanism of some sort (in debug
builds)
about whether the stack is clear or not on end() would definitely help the
end-user
to catch such mistakes.
Original comment by tbptbp@gmail.com
on 24 Jan 2009 at 1:44
Original issue reported on code.google.com by
tbptbp@gmail.com
on 14 Jan 2009 at 1:35