Silence 'getCapability called before caps received for' console spam when fetching mesh. TODO: Check if a proper workaround is available in V3, as I worry that some meshes that failed the caps check may not get promptly re-generated upon caps receipt.

This commit is contained in:
Shyotl
2016-06-21 02:22:03 -05:00
parent cd25894a39
commit f77df0ab83

View File

@@ -2315,7 +2315,11 @@ bool LLViewerRegion::meshUploadEnabled() const
bool LLViewerRegion::meshRezEnabled() const
{
if (getCapability("SimulatorFeatures").empty())
if (!capabilitiesReceived())
{
return false;
}
else if (getCapability("SimulatorFeatures").empty())
{
return !getCapability("GetMesh").empty() || !getCapability("GetMesh2").empty();
}