mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +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
|
|
@ -1090,13 +1090,13 @@ void GuiPopUpMenuCtrlEx::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();
|
||||
|
|
@ -1134,7 +1134,7 @@ void GuiPopUpMenuCtrlEx::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();
|
||||
|
|
@ -1164,7 +1164,7 @@ void GuiPopUpMenuCtrlEx::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