Преглед на файлове

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'

JeffR преди 3 седмици
родител
ревизия
322d3bb093
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      Engine/source/gui/buttons/guiIconButtonCtrl.cpp

+ 1 - 2
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() );