mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Merge pull request #721 from OTHGMars/guiBmpFix
GuiBitmapCtrl named texture fixes.
This commit is contained in:
commit
3b12fefdf1
1 changed files with 3 additions and 2 deletions
|
|
@ -98,7 +98,8 @@ bool GuiBitmapCtrl::onWake()
|
||||||
return false;
|
return false;
|
||||||
setActive(true);
|
setActive(true);
|
||||||
|
|
||||||
setBitmap(getBitmap());
|
if (mBitmapName != StringTable->insert("texhandle"))
|
||||||
|
setBitmap(getBitmap());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -152,7 +153,7 @@ void GuiBitmapCtrl::setBitmapHandle(GFXTexHandle handle, bool resize)
|
||||||
{
|
{
|
||||||
mBitmap = handle;
|
mBitmap = handle;
|
||||||
|
|
||||||
mBitmapName = String("texhandle");
|
mBitmapName = StringTable->insert("texhandle");
|
||||||
|
|
||||||
// Resize the control to fit the bitmap
|
// Resize the control to fit the bitmap
|
||||||
if (resize)
|
if (resize)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue