mirror of
https://github.com/SWG-Source/src.git
synced 2026-08-03 03:16:01 -04:00
more granular debug messages for appearances so we can know for sure which caller it is missing them
This commit is contained in:
@@ -399,10 +399,10 @@ Appearance *AppearanceTemplateList::createAppearance(const char *const fileName)
|
||||
//-- get the appearance template
|
||||
const AppearanceTemplate *const appearanceTemplate = fetch(fileName);
|
||||
|
||||
#ifdef _DEBUG
|
||||
#ifdef _DEBUG //probably should modify the macro sometime to just be quiet if this isn't defined
|
||||
if (appearanceTemplate == NULL){
|
||||
DEBUG_WARNING(true, ("FIX ME: Appearance template for %s could not be fetched - is it missing?", fileName));
|
||||
return NULL; // Cekis: TODO: Figure out why the template can't be fetched.
|
||||
DEBUG_WARNING(true, ("FIX ME: Appearance template for %s could not be fetched - is it missing?", fileName));
|
||||
return NULL; // Cekis: TODO: Figure out why the template can't be fetched. DarthArgus: always is due to a missing file or one of the redirectors having a bad path
|
||||
}
|
||||
|
||||
DataLint::pushAsset(fileName);
|
||||
|
||||
@@ -2464,7 +2464,9 @@ void Object::setAppearanceByName(char const *path)
|
||||
if (appearance != NULL)
|
||||
{
|
||||
setAppearance(appearance);
|
||||
}
|
||||
} else {
|
||||
DEBUG_WARNING(true, ("Object::setAppearanceByName() - Unable to find the object's appearance because the file does not exist: %s", path));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3275,6 +3277,7 @@ void Object::setAlternateAppearance(const char * path)
|
||||
alternateAppearance = AppearanceTemplateList::createAppearance(path);
|
||||
|
||||
if (alternateAppearance == NULL) {
|
||||
DEBUG_WARNING(true, ("Object::setAlternateAppearance() - Unable to change the object's appearance because the file does not exist: %s", path));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -438,6 +438,8 @@ void CellProperty::initialize(const PortalProperty &portalProperty, int cellInde
|
||||
|
||||
if (ms_addToRenderWorldHook)
|
||||
ms_addToRenderWorldHook(*m_appearanceObject);
|
||||
} else {
|
||||
DEBUG_WARNING(true, ("FIX ME: Appearance template in CellProperty::initialize missing"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -463,6 +463,8 @@ void PortalProperty::createAppearance()
|
||||
if (appearance != NULL) {
|
||||
appearance->setShadowBlobAllowed();
|
||||
getOwner().setAppearance(appearance);
|
||||
} else {
|
||||
DEBUG_WARNING(true, ("FIX ME: Appearance template for PortalProperty::createAppearance missing"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user