Permalink
Browse files

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.
1 parent cd25894 commit f77df0ab839416d7627b84c78b8aa60906cf2403 @Shyotl Shyotl committed Jun 21, 2016
Showing with 5 additions and 1 deletion.
  1. +5 −1 indra/newview/llviewerregion.cpp
@@ -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();
}

0 comments on commit f77df0a

Please sign in to comment.