From 322d3bb0934f4fb8ef30d620a2a23cd56d23dc7f Mon Sep 17 00:00:00 2001 From: JeffR Date: Wed, 7 Jan 2026 17:57:53 -0600 Subject: [PATCH] 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' --- Engine/source/gui/buttons/guiIconButtonCtrl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Engine/source/gui/buttons/guiIconButtonCtrl.cpp b/Engine/source/gui/buttons/guiIconButtonCtrl.cpp index 9c0cd7517..10f84ba28 100644 --- a/Engine/source/gui/buttons/guiIconButtonCtrl.cpp +++ b/Engine/source/gui/buttons/guiIconButtonCtrl.cpp @@ -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() );