Merge branch 'DRTVWR-548-maint-N' of https://bitbucket.org/lindenlab/viewer

master
Ansariel 2022-08-02 12:51:33 +02:00
commit a0915f707d
5 changed files with 26 additions and 13 deletions

View File

@ -612,14 +612,16 @@ BOOL LLPolyMeshSharedData::loadMesh( const std::string& fileName )
// we reached the end of the morphs
break;
}
LLPolyMorphData* morph_data = new LLPolyMorphData(std::string(morphName));
std::string morph_name(morphName);
LLPolyMorphData* morph_data = new LLPolyMorphData(morph_name);
BOOL result = morph_data->loadBinary(fp, this);
if (!result)
{
delete morph_data;
continue;
LL_WARNS() << "Failure loading " << morph_name << " from " << fileName << LL_ENDL;
delete morph_data;
continue;
}
mMorphData.insert(morph_data);

View File

@ -156,7 +156,9 @@ BOOL LLPolyMorphData::loadBinary(LLFILE *fp, LLPolyMeshSharedData *mesh)
if (mVertexIndices[v] > 10000)
{
LL_ERRS() << "Bad morph index: " << mVertexIndices[v] << LL_ENDL;
// Bad install? These are usually .llm files from 'character' fodler
LL_WARNS() << "Bad morph index " << v << ": " << mVertexIndices[v] << LL_ENDL;
return FALSE;
}

View File

@ -1092,13 +1092,14 @@ void LLViewerParcelOverlay::renderPropertyLinesOnMinimap(F32 scale_pixels_per_me
gGL.color4fv(parcel_outline_color);
for (S32 i = 0; i < GRIDS_PER_EDGE + 1; i++)
{
F32 bottom = region_bottom + (i * map_parcel_width);
F32 top = bottom + map_parcel_width;
const F32 bottom = region_bottom + (i * map_parcel_width);
const F32 top = bottom + map_parcel_width;
for (S32 j = 0; j < GRIDS_PER_EDGE + 1; j++)
{
F32 left = region_left + (j * map_parcel_width);
F32 right = left + map_parcel_width;
U8 overlay = mOwnership[(i * GRIDS_PER_EDGE) + j];
const F32 left = region_left + (j * map_parcel_width);
const F32 right = left + map_parcel_width;
const bool is_region_boundary = i == GRIDS_PER_EDGE || j == GRIDS_PER_EDGE;
const U8 overlay = is_region_boundary ? 0 : mOwnership[(i * GRIDS_PER_EDGE) + j];
// The property line vertices are three-dimensional, but here we only care about the x and y coordinates, as we are drawing on a
// 2D map
const bool has_left = i != GRIDS_PER_EDGE && (j == GRIDS_PER_EDGE || (overlay & PARCEL_WEST_LINE));

View File

@ -2802,10 +2802,11 @@ void LLViewerWindow::reshape(S32 width, S32 height)
//glViewport(0, 0, width, height );
if (height > 0)
LLViewerCamera * camera = LLViewerCamera::getInstance(); // simpleton, might not exist
if (height > 0 && camera)
{
LLViewerCamera::getInstance()->setViewHeightInPixels( mWorldViewRectRaw.getHeight() );
LLViewerCamera::getInstance()->setAspect( getWorldViewAspectRatio() );
camera->setViewHeightInPixels( mWorldViewRectRaw.getHeight() );
camera->setAspect( getWorldViewAspectRatio() );
}
calcDisplayScale();

View File

@ -1741,7 +1741,14 @@ bool LLVivoxVoiceClient::requestParcelVoiceInfo()
}
else
{
LL_WARNS("Voice") << "No voice credentials" << LL_ENDL;
if (LLViewerParcelMgr::getInstance()->allowAgentVoice())
{
LL_WARNS("Voice") << "No voice credentials" << LL_ENDL;
}
else
{
LL_DEBUGS("Voice") << "No voice credentials" << LL_ENDL;
}
}
// set the spatial channel. If no voice credentials or uri are