Fix remaining unused variable issues
parent
8894abaafa
commit
0d8af269df
|
|
@ -798,7 +798,6 @@ bool DAESaver::saveDAE(std::string filename)
|
||||||
for (obj_info_t::iterator obj_iter = mObjects.begin(); obj_iter != mObjects.end(); ++obj_iter)
|
for (obj_info_t::iterator obj_iter = mObjects.begin(); obj_iter != mObjects.end(); ++obj_iter)
|
||||||
{
|
{
|
||||||
LLViewerObject* obj = obj_iter->first;
|
LLViewerObject* obj = obj_iter->first;
|
||||||
S32 total_num_vertices = 0;
|
|
||||||
|
|
||||||
std::string name = "";
|
std::string name = "";
|
||||||
if (name.empty()) name = llformat("prim%d", prim_nr++);
|
if (name.empty()) name = llformat("prim%d", prim_nr++);
|
||||||
|
|
@ -821,7 +820,6 @@ bool DAESaver::saveDAE(std::string filename)
|
||||||
if (skipFace(obj->getTE(face_num))) continue;
|
if (skipFace(obj->getTE(face_num))) continue;
|
||||||
|
|
||||||
const LLVolumeFace* face = (LLVolumeFace*)&obj->getVolume()->getVolumeFace(face_num);
|
const LLVolumeFace* face = (LLVolumeFace*)&obj->getVolume()->getVolumeFace(face_num);
|
||||||
total_num_vertices += face->mNumVertices;
|
|
||||||
|
|
||||||
v4adapt verts(face->mPositions);
|
v4adapt verts(face->mPositions);
|
||||||
v4adapt norms(face->mNormals);
|
v4adapt norms(face->mNormals);
|
||||||
|
|
|
||||||
|
|
@ -589,7 +589,9 @@ bool Asset::prep()
|
||||||
|
|
||||||
for (U32 variant = 0; variant < LLGLSLShader::NUM_GLTF_VARIANTS; ++variant)
|
for (U32 variant = 0; variant < LLGLSLShader::NUM_GLTF_VARIANTS; ++variant)
|
||||||
{
|
{
|
||||||
|
#if SHOW_ASSERT
|
||||||
U32 attribute_mask = 0;
|
U32 attribute_mask = 0;
|
||||||
|
#endif
|
||||||
// for each mesh
|
// for each mesh
|
||||||
for (auto& mesh : mMeshes)
|
for (auto& mesh : mMeshes)
|
||||||
{
|
{
|
||||||
|
|
@ -607,7 +609,9 @@ bool Asset::prep()
|
||||||
|
|
||||||
// all primitives of a given variant and material should all have the same attribute mask
|
// all primitives of a given variant and material should all have the same attribute mask
|
||||||
llassert(attribute_mask == 0 || primitive.mAttributeMask == attribute_mask);
|
llassert(attribute_mask == 0 || primitive.mAttributeMask == attribute_mask);
|
||||||
|
#if SHOW_ASSERT
|
||||||
attribute_mask |= primitive.mAttributeMask;
|
attribute_mask |= primitive.mAttributeMask;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6685,7 +6685,6 @@ void LLAgent::sendAgentSetAppearance()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
S32 transmitted_params = 0;
|
|
||||||
for (LLViewerVisualParam* param = (LLViewerVisualParam*)gAgentAvatarp->getFirstVisualParam();
|
for (LLViewerVisualParam* param = (LLViewerVisualParam*)gAgentAvatarp->getFirstVisualParam();
|
||||||
param;
|
param;
|
||||||
param = (LLViewerVisualParam*)gAgentAvatarp->getNextVisualParam())
|
param = (LLViewerVisualParam*)gAgentAvatarp->getNextVisualParam())
|
||||||
|
|
@ -6699,7 +6698,6 @@ void LLAgent::sendAgentSetAppearance()
|
||||||
const F32 param_value = param->getWeight();
|
const F32 param_value = param->getWeight();
|
||||||
const U8 new_weight = F32_to_U8(param_value, param->getMinWeight(), param->getMaxWeight());
|
const U8 new_weight = F32_to_U8(param_value, param->getMinWeight(), param->getMaxWeight());
|
||||||
msg->addU8Fast(_PREHASH_ParamValue, new_weight );
|
msg->addU8Fast(_PREHASH_ParamValue, new_weight );
|
||||||
transmitted_params++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -204,7 +204,7 @@ LLAgentCamera::LLAgentCamera() :
|
||||||
resetPanDiff();
|
resetPanDiff();
|
||||||
resetOrbitDiff();
|
resetOrbitDiff();
|
||||||
// <FS:Chanayane> Camera roll (from Alchemy)
|
// <FS:Chanayane> Camera roll (from Alchemy)
|
||||||
resetCameraRoll();
|
resetCameraRoll();
|
||||||
// </FS:Chanayane>
|
// </FS:Chanayane>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -388,7 +388,7 @@ void LLAgentCamera::resetView(bool reset_camera, bool change_camera, bool moveme
|
||||||
|
|
||||||
mCameraFOVZoomFactor = 0.f;
|
mCameraFOVZoomFactor = 0.f;
|
||||||
// <FS:Chanayane> Camera roll (from Alchemy)
|
// <FS:Chanayane> Camera roll (from Alchemy)
|
||||||
resetCameraRoll();
|
resetCameraRoll();
|
||||||
// </FS:Chanayane>
|
// </FS:Chanayane>
|
||||||
}
|
}
|
||||||
resetPanDiff();
|
resetPanDiff();
|
||||||
|
|
@ -974,7 +974,7 @@ void LLAgentCamera::resetCameraOrbit()
|
||||||
cameraZoomIn(1.f);
|
cameraZoomIn(1.f);
|
||||||
resetOrbitDiff();
|
resetOrbitDiff();
|
||||||
// <FS:Chanayane> Camera roll (from Alchemy)
|
// <FS:Chanayane> Camera roll (from Alchemy)
|
||||||
resetCameraRoll();
|
resetCameraRoll();
|
||||||
// </FS:Chanayane>
|
// </FS:Chanayane>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2157,9 +2157,9 @@ LLVector3d LLAgentCamera::calcCameraPositionTargetGlobal(bool *hit_limit)
|
||||||
bool fCamAvDistClamped, fCamAvDistLocked = false; float nCamAvDistLimitMin, nCamAvDistLimitMax;
|
bool fCamAvDistClamped, fCamAvDistLocked = false; float nCamAvDistLimitMin, nCamAvDistLimitMax;
|
||||||
if ((fCamAvDistClamped = RlvActions::getCameraAvatarDistanceLimits(nCamAvDistLimitMin, nCamAvDistLimitMax)))
|
if ((fCamAvDistClamped = RlvActions::getCameraAvatarDistanceLimits(nCamAvDistLimitMin, nCamAvDistLimitMax)))
|
||||||
fCamAvDistLocked = nCamAvDistLimitMin == nCamAvDistLimitMax;
|
fCamAvDistLocked = nCamAvDistLimitMin == nCamAvDistLimitMax;
|
||||||
bool fCamOriginDistClamped, fCamOriginDistLocked = false; float nCamOriginDistLimitMin, nCamOriginDistLimitMax;
|
float nCamOriginDistLimitMin;
|
||||||
if ((fCamOriginDistClamped = RlvActions::getCameraOriginDistanceLimits(nCamOriginDistLimitMin, nCamOriginDistLimitMax)))
|
float nCamOriginDistLimitMax;
|
||||||
fCamOriginDistLocked = nCamOriginDistLimitMin == nCamOriginDistLimitMax;
|
const bool fCamOriginDistClamped = RlvActions::getCameraOriginDistanceLimits(nCamOriginDistLimitMin, nCamOriginDistLimitMax);
|
||||||
|
|
||||||
// Check focus distance limits
|
// Check focus distance limits
|
||||||
if ( (fCamOriginDistClamped) && (!fCamAvDistLocked) )
|
if ( (fCamOriginDistClamped) && (!fCamAvDistLocked) )
|
||||||
|
|
@ -2793,7 +2793,7 @@ void LLAgentCamera::switchCameraPreset(ECameraPreset preset)
|
||||||
resetPanDiff();
|
resetPanDiff();
|
||||||
resetOrbitDiff();
|
resetOrbitDiff();
|
||||||
// <FS:Chanayane> Camera roll (from Alchemy)
|
// <FS:Chanayane> Camera roll (from Alchemy)
|
||||||
resetCameraRoll();
|
resetCameraRoll();
|
||||||
// </FS:Chanayane>
|
// </FS:Chanayane>
|
||||||
|
|
||||||
gSavedSettings.setU32("CameraPresetType", mCameraPreset);
|
gSavedSettings.setU32("CameraPresetType", mCameraPreset);
|
||||||
|
|
@ -3334,7 +3334,7 @@ void LLAgentCamera::storeCameraPosition()
|
||||||
LLVector3d forward = LLVector3d(1.0, 0.0, 0.0) * LLViewerCamera::getInstance()->getQuaternion() + getCameraPositionGlobal();
|
LLVector3d forward = LLVector3d(1.0, 0.0, 0.0) * LLViewerCamera::getInstance()->getQuaternion() + getCameraPositionGlobal();
|
||||||
gSavedPerAccountSettings.setVector3d("FSStoredCameraFocus", forward);
|
gSavedPerAccountSettings.setVector3d("FSStoredCameraFocus", forward);
|
||||||
// <FS:Chanayane> Camera roll (from Alchemy)
|
// <FS:Chanayane> Camera roll (from Alchemy)
|
||||||
gSavedPerAccountSettings.setF32("ALStoredCameraRoll", mRollAngle);
|
gSavedPerAccountSettings.setF32("ALStoredCameraRoll", mRollAngle);
|
||||||
// </FS:Chanayane>
|
// </FS:Chanayane>
|
||||||
|
|
||||||
LLUUID stored_camera_focus_object_id = LLUUID::null;
|
LLUUID stored_camera_focus_object_id = LLUUID::null;
|
||||||
|
|
@ -3381,7 +3381,7 @@ void LLAgentCamera::loadCameraPosition()
|
||||||
unlockView();
|
unlockView();
|
||||||
setCameraPosAndFocusGlobal(stored_camera_pos, stored_camera_focus, stored_camera_focus_object_id);
|
setCameraPosAndFocusGlobal(stored_camera_pos, stored_camera_focus, stored_camera_focus_object_id);
|
||||||
// <FS:Chanayane> Camera roll (from Alchemy)
|
// <FS:Chanayane> Camera roll (from Alchemy)
|
||||||
mRollAngle = stored_camera_roll;
|
mRollAngle = stored_camera_roll;
|
||||||
// </FS:Chanayane>
|
// </FS:Chanayane>
|
||||||
}
|
}
|
||||||
// </FS:Ansariel> FIRE-7758: Save/load camera position feature
|
// </FS:Ansariel> FIRE-7758: Save/load camera position feature
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ void LLDrawPoolWater::renderPostDeferred(S32 pass)
|
||||||
gGL.setColorMask(true, true);
|
gGL.setColorMask(true, true);
|
||||||
|
|
||||||
LLColor3 light_diffuse(0, 0, 0);
|
LLColor3 light_diffuse(0, 0, 0);
|
||||||
F32 light_exp = 0.0f;
|
//F32 light_exp = 0.0f; // <FS:Ansariel> Remove unused variable
|
||||||
|
|
||||||
LLEnvironment& environment = LLEnvironment::instance();
|
LLEnvironment& environment = LLEnvironment::instance();
|
||||||
LLSettingsWater::ptr_t pwater = environment.getCurrentWater();
|
LLSettingsWater::ptr_t pwater = environment.getCurrentWater();
|
||||||
|
|
@ -183,7 +183,7 @@ void LLDrawPoolWater::renderPostDeferred(S32 pass)
|
||||||
// Apply magic numbers translating light direction into intensities
|
// Apply magic numbers translating light direction into intensities
|
||||||
light_dir.normalize();
|
light_dir.normalize();
|
||||||
F32 ground_proj_sq = light_dir.mV[0] * light_dir.mV[0] + light_dir.mV[1] * light_dir.mV[1];
|
F32 ground_proj_sq = light_dir.mV[0] * light_dir.mV[0] + light_dir.mV[1] * light_dir.mV[1];
|
||||||
light_exp = llmax(32.f, 256.f * powf(ground_proj_sq, 16.0f));
|
//light_exp = llmax(32.f, 256.f * powf(ground_proj_sq, 16.0f)); // <FS:Ansariel> Remove unused variable
|
||||||
if (0.f < light_diffuse.normalize()) // Normalizing a color? Puzzling...
|
if (0.f < light_diffuse.normalize()) // Normalizing a color? Puzzling...
|
||||||
{
|
{
|
||||||
light_diffuse *= (1.5f + (6.f * ground_proj_sq));
|
light_diffuse *= (1.5f + (6.f * ground_proj_sq));
|
||||||
|
|
|
||||||
|
|
@ -1928,7 +1928,7 @@ void LLModelPreview::genGlodLODs(S32 which_lod, U32 decimation, bool enforce_tri
|
||||||
mModel[lod].resize(mBaseModel.size());
|
mModel[lod].resize(mBaseModel.size());
|
||||||
mVertexBuffer[lod].clear();
|
mVertexBuffer[lod].clear();
|
||||||
|
|
||||||
U32 submeshes = 0;
|
//U32 submeshes = 0; // <FS:Ansariel> Remove unused variable
|
||||||
|
|
||||||
mRequestedTriangleCount[lod] = (S32)((F32)triangle_count / triangle_ratio);
|
mRequestedTriangleCount[lod] = (S32)((F32)triangle_count / triangle_ratio);
|
||||||
mRequestedErrorThreshold[lod] = lod_error_threshold;
|
mRequestedErrorThreshold[lod] = lod_error_threshold;
|
||||||
|
|
@ -2073,7 +2073,7 @@ void LLModelPreview::genGlodLODs(S32 which_lod, U32 decimation, bool enforce_tri
|
||||||
buff->getIndexStrider(index);
|
buff->getIndexStrider(index);
|
||||||
|
|
||||||
target_model->setVolumeFaceData(names[i], pos, norm, tc, index, buff->getNumVerts(), buff->getNumIndices());
|
target_model->setVolumeFaceData(names[i], pos, norm, tc, index, buff->getNumVerts(), buff->getNumIndices());
|
||||||
++submeshes;
|
//++submeshes; // <FS:Ansariel> Remove unused variable
|
||||||
|
|
||||||
if (!validate_face(target_model->getVolumeFace(names[i])))
|
if (!validate_face(target_model->getVolumeFace(names[i])))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -544,7 +544,7 @@ void LLViewerTexture::updateClass()
|
||||||
bool is_low = is_sys_low || over_pct > 0.f;
|
bool is_low = is_sys_low || over_pct > 0.f;
|
||||||
|
|
||||||
static bool was_low = false;
|
static bool was_low = false;
|
||||||
static bool was_sys_low = false;
|
//static bool was_sys_low = false; // <FS:Ansariel> Remove unused variable
|
||||||
|
|
||||||
if (is_low && !was_low)
|
if (is_low && !was_low)
|
||||||
{
|
{
|
||||||
|
|
@ -562,7 +562,7 @@ void LLViewerTexture::updateClass()
|
||||||
}
|
}
|
||||||
|
|
||||||
was_low = is_low;
|
was_low = is_low;
|
||||||
was_sys_low = is_sys_low;
|
//was_sys_low = is_sys_low; // <FS:Ansariel> Remove unused variable
|
||||||
|
|
||||||
if (is_low)
|
if (is_low)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue