mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
Allows setBitmap calls on IconButtons to set the bitmap data even if the control isn't awake to avoid issues of a set call being 'skipped'
This commit is contained in:
parent
d95f5f798e
commit
322d3bb093
1 changed files with 1 additions and 2 deletions
|
|
@ -202,11 +202,10 @@ bool GuiIconButtonCtrl::resize(const Point2I &newPosition, const Point2I &newExt
|
||||||
|
|
||||||
void GuiIconButtonCtrl::setBitmap(const char *name)
|
void GuiIconButtonCtrl::setBitmap(const char *name)
|
||||||
{
|
{
|
||||||
|
_setBitmap(name);
|
||||||
if(!isAwake())
|
if(!isAwake())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_setBitmap(name);
|
|
||||||
|
|
||||||
// So that extent is recalculated if autoSize is set.
|
// So that extent is recalculated if autoSize is set.
|
||||||
resize( getPosition(), getExtent() );
|
resize( getPosition(), getExtent() );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue