console spam

moved error printout in guiType guiControlProfile incLoadCount inside a check to make sure the profile has a bitmap asset set.

remove older typeImageAssetId from group and variable inspector classes
This commit is contained in:
marauder2k7 2024-12-26 13:59:46 +00:00
parent 32c6330b72
commit eb746a1142
4 changed files with 9 additions and 9 deletions

View file

@ -643,13 +643,13 @@ void GuiControlProfile::incLoadCount()
if (mBitmapAsset.notNull() && mBitmapName != StringTable->insert("texHandle"))
{
mBitmap = getBitmap();
//verify the bitmap
if (!mBitmap)
Con::errorf("(%s) - Failed to load profile bitmap (%s)", getName(), getBitmapAsset().getAssetId());
constructBitmapArray();
}
//verify the bitmap
if (!mBitmap)
Con::errorf("(%s) - Failed to load profile bitmap (%s)", getName(), getBitmapAsset().getAssetId());
constructBitmapArray();
}
mLoadCount ++;