mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +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
|
|
@ -202,11 +202,10 @@ bool GuiIconButtonCtrl::resize(const Point2I &newPosition, const Point2I &newExt
|
|||
|
||||
void GuiIconButtonCtrl::setBitmap(const char *name)
|
||||
{
|
||||
_setBitmap(name);
|
||||
if(!isAwake())
|
||||
return;
|
||||
|
||||
_setBitmap(name);
|
||||
|
||||
// So that extent is recalculated if autoSize is set.
|
||||
resize( getPosition(), getExtent() );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue