mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
use of get<some name> methods that already return nulls/false when attempting to load
in contexts where we would want to try first
This commit is contained in:
parent
a43458677a
commit
40974dd14b
11 changed files with 31 additions and 31 deletions
|
|
@ -891,13 +891,13 @@ void GuiPopUpMenuCtrl::onRender( Point2I offset, const RectI &updateRect )
|
|||
}
|
||||
|
||||
// Draw a bitmap over the background?
|
||||
if ( mBitmapAsset[Depressed].notNull() )
|
||||
if (getBitmap(Depressed))
|
||||
{
|
||||
RectI rect(offset, mBitmapBounds);
|
||||
drawUtil->clearBitmapModulation();
|
||||
drawUtil->drawBitmapStretch( getBitmap(Depressed), rect );
|
||||
}
|
||||
else if ( mBitmapAsset[Normal].notNull() )
|
||||
else if (getBitmap(Normal))
|
||||
{
|
||||
RectI rect(offset, mBitmapBounds);
|
||||
drawUtil->clearBitmapModulation();
|
||||
|
|
@ -941,7 +941,7 @@ void GuiPopUpMenuCtrl::onRender( Point2I offset, const RectI &updateRect )
|
|||
}
|
||||
|
||||
// Draw a bitmap over the background?
|
||||
if ( mBitmapAsset[Normal].notNull() )
|
||||
if (getBitmap(Normal))
|
||||
{
|
||||
RectI rect( offset, mBitmapBounds );
|
||||
drawUtil->clearBitmapModulation();
|
||||
|
|
@ -977,7 +977,7 @@ void GuiPopUpMenuCtrl::onRender( Point2I offset, const RectI &updateRect )
|
|||
}
|
||||
|
||||
// Draw a bitmap over the background?
|
||||
if (mBitmapAsset[Normal].notNull())
|
||||
if (getBitmap(Normal))
|
||||
{
|
||||
RectI rect(offset, mBitmapBounds);
|
||||
drawUtil->clearBitmapModulation();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue