mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
* [GuiControl] BugFix: Don't assume a tooltip profile is going to be set when waking and sleeping.
This commit is contained in:
parent
6d0105948d
commit
5c83b417a5
1 changed files with 10 additions and 2 deletions
|
|
@ -843,7 +843,11 @@ bool GuiControl::onWake()
|
||||||
|
|
||||||
//increment the profile
|
//increment the profile
|
||||||
mProfile->incLoadCount();
|
mProfile->incLoadCount();
|
||||||
mTooltipProfile->incLoadCount();
|
|
||||||
|
if (mTooltipProfile)
|
||||||
|
{
|
||||||
|
mTooltipProfile->incLoadCount();
|
||||||
|
}
|
||||||
|
|
||||||
// Only invoke script callbacks if we have a namespace in which to do so
|
// Only invoke script callbacks if we have a namespace in which to do so
|
||||||
// This will suppress warnings
|
// This will suppress warnings
|
||||||
|
|
@ -869,7 +873,11 @@ void GuiControl::onSleep()
|
||||||
|
|
||||||
//decrement the profile reference
|
//decrement the profile reference
|
||||||
mProfile->decLoadCount();
|
mProfile->decLoadCount();
|
||||||
mTooltipProfile->decLoadCount();
|
|
||||||
|
if (mTooltipProfile)
|
||||||
|
{
|
||||||
|
mTooltipProfile->decLoadCount();
|
||||||
|
}
|
||||||
|
|
||||||
// Set Flag
|
// Set Flag
|
||||||
mAwake = false;
|
mAwake = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue