SH-1603 Replace every occurrence of "WTF" with something more appropriate.
parent
e3782b5633
commit
3a409e6edc
|
|
@ -2036,7 +2036,9 @@ std::string zip_llsd(LLSD& data)
|
|||
{ //copy result into output
|
||||
if (strm.avail_out >= CHUNK)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
free(output);
|
||||
llwarns << "Failed to compress LLSD block." << llendl;
|
||||
return std::string();
|
||||
}
|
||||
|
||||
have = CHUNK-strm.avail_out;
|
||||
|
|
|
|||
|
|
@ -737,7 +737,7 @@ void LLPerfBlock::addStatsToLLSDandReset( LLSD & stats,
|
|||
}
|
||||
}
|
||||
else
|
||||
{ // WTF? Shouldn't have a NULL pointer in the map.
|
||||
{ // Shouldn't have a NULL pointer in the map.
|
||||
llwarns << "Unexpected NULL dynamic stat at '" << stats_full_path << "'" << llendl;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ void assert_aligned(void* ptr, uintptr_t alignment)
|
|||
uintptr_t t = (uintptr_t) ptr;
|
||||
if (t%alignment != 0)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
llerrs << "Alignment check failed." << llendl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
@ -361,7 +361,7 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
llerrs << "WTF? Empty leaf" << llendl;
|
||||
llerrs << "Empty leaf" << llendl;
|
||||
}
|
||||
|
||||
for (S32 i = 0; i < branch->getChildCount(); ++i)
|
||||
|
|
@ -2159,8 +2159,9 @@ bool LLVolume::unpackVolumeFaces(std::istream& is, S32 size)
|
|||
U32 face_count = mdl.size();
|
||||
|
||||
if (face_count == 0)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
{ //no faces unpacked, treat as failed decode
|
||||
llwarns << "found no faces!" << llendl;
|
||||
return false;
|
||||
}
|
||||
|
||||
mVolumeFaces.resize(face_count);
|
||||
|
|
@ -2179,7 +2180,7 @@ bool LLVolume::unpackVolumeFaces(std::istream& is, S32 size)
|
|||
|
||||
if (idx.empty() || face.mNumIndices < 3)
|
||||
{ //why is there an empty index list?
|
||||
llerrs <<"WTF?" << llendl;
|
||||
llwarns <<"Empty face present!" << llendl;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ void load_face_from_dom_inputs(LLVolumeFace& face, const domInputLocalOffset_Arr
|
|||
domInputLocal_Array& v_inp = vertices->getInput_array();
|
||||
if (inputs[j]->getOffset() != 0)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
llerrs << "Vertex array offset MUST be zero." << llendl;
|
||||
}
|
||||
|
||||
for (U32 k = 0; k < v_inp.getCount(); ++k)
|
||||
|
|
@ -98,7 +98,7 @@ void load_face_from_dom_inputs(LLVolumeFace& face, const domInputLocalOffset_Arr
|
|||
|
||||
if (src->getTechnique_common()->getAccessor()->getStride() != 3)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
llerrs << "Vertex array stride MUST be three." << llendl;
|
||||
}
|
||||
|
||||
domListOfFloats& v = src->getFloat_array()->getValue();
|
||||
|
|
@ -667,11 +667,6 @@ LLModel::EModelStatus load_face_from_dom_polygons(std::vector<LLVolumeFace>& fac
|
|||
}
|
||||
}
|
||||
|
||||
if (cur_idx != vert_idx.size())
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
|
||||
//build vertex array from map
|
||||
std::vector<LLVolumeFace::VertexData> new_verts;
|
||||
new_verts.resize(vert_idx.size());
|
||||
|
|
@ -926,11 +921,6 @@ void LLModel::normalizeVolumeFaces()
|
|||
{
|
||||
LLVector4a min, max;
|
||||
|
||||
if (mVolumeFaces[0].mNumVertices <= 0)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
|
||||
// For all of the volume faces
|
||||
// in the model, loop over
|
||||
// them and see what the extents
|
||||
|
|
@ -942,11 +932,6 @@ void LLModel::normalizeVolumeFaces()
|
|||
{
|
||||
LLVolumeFace& face = mVolumeFaces[i];
|
||||
|
||||
if (face.mNumVertices <= 0)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
|
||||
update_min_max(min, max, face.mExtents[0]);
|
||||
update_min_max(min, max, face.mExtents[1]);
|
||||
}
|
||||
|
|
@ -1289,11 +1274,6 @@ void LLModel::generateNormals(F32 angle_cutoff)
|
|||
{
|
||||
LLVector4a& n = iter->second[k].getNormal();
|
||||
|
||||
if (!iter->second[k].getPosition().equals3(new_face.mPositions[i]))
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
|
||||
F32 cur = n.dot3(ref_norm).getF32();
|
||||
|
||||
if (cur > best)
|
||||
|
|
@ -1539,11 +1519,6 @@ LLSD LLModel::writeModel(
|
|||
|
||||
weight_list& weights = high->getJointInfluences(pos);
|
||||
|
||||
if (weights.size() > 4)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
|
||||
S32 count = 0;
|
||||
for (weight_list::iterator iter = weights.begin(); iter != weights.end(); ++iter)
|
||||
{
|
||||
|
|
@ -1607,10 +1582,6 @@ LLSD LLModel::writeModelToStream(std::ostream& ostr, LLSD& mdl, BOOL nowrite)
|
|||
cur_offset += size;
|
||||
bytes += size;
|
||||
}
|
||||
else
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
}
|
||||
|
||||
std::string decomposition;
|
||||
|
|
@ -1685,7 +1656,7 @@ LLModel::weight_list& LLModel::getJointInfluences(const LLVector3& pos)
|
|||
{
|
||||
if ((iter->first - pos).magVec() > 0.1f)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
llerrs << "Couldn't find weight list." << llendl;
|
||||
}
|
||||
|
||||
return iter->second;
|
||||
|
|
@ -2263,7 +2234,7 @@ LLSD LLModel::Decomposition::asLLSD() const
|
|||
|
||||
if (vert_idx > p.size())
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
llerrs << "Index out of bounds" << llendl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -695,7 +695,8 @@ void LLDrawable::updateDistance(LLCamera& camera, bool force_update)
|
|||
{
|
||||
if (LLViewerCamera::sCurCameraID != LLViewerCamera::CAMERA_WORLD)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
llwarns << "Attempted to update distance for non-world camera." << llendl;
|
||||
return;
|
||||
}
|
||||
|
||||
//switch LOD with the spatial group to avoid artifacts
|
||||
|
|
|
|||
|
|
@ -364,14 +364,7 @@ void LLFace::setSize(S32 num_vertices, S32 num_indices, bool align)
|
|||
//allocate vertices in blocks of 4 for alignment
|
||||
num_vertices = (num_vertices + 0x3) & ~0x3;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (mDrawablep->getVOVolume())
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (mGeomCount != num_vertices ||
|
||||
mIndicesCount != num_indices)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1657,7 +1657,7 @@ bool LLModelLoader::doLoadModel()
|
|||
{
|
||||
if (pos.getCount() <= j+2)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
llerrs << "Invalid position array size." << llendl;
|
||||
}
|
||||
|
||||
LLVector3 v(pos[j], pos[j+1], pos[j+2]);
|
||||
|
|
@ -4264,11 +4264,7 @@ void LLModelPreview::genBuffers(S32 lod, bool include_skin_weights)
|
|||
const LLModel::weight_list& weight_list = base_mdl->getJointInfluences(pos);
|
||||
|
||||
LLVector4 w(0,0,0,0);
|
||||
if (weight_list.size() > 4)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
|
||||
|
||||
for (U32 i = 0; i < weight_list.size(); ++i)
|
||||
{
|
||||
F32 wght = llmin(weight_list[i].mWeight, 0.999999f);
|
||||
|
|
|
|||
|
|
@ -709,10 +709,7 @@ void LLMeshRepoThread::loadMeshLOD(const LLVolumeParams& mesh_params, S32 lod)
|
|||
if (pending != mPendingLOD.end())
|
||||
{ //append this lod request to existing header request
|
||||
pending->second.push_back(lod);
|
||||
if (pending->second.size() > 4)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
llassert(pending->second.size() <= LLModel::NUM_LODS)
|
||||
}
|
||||
else
|
||||
{ //if no header request is pending, fetch header
|
||||
|
|
@ -1359,11 +1356,8 @@ void LLMeshUploadThread::DecompRequest::completed()
|
|||
mThread->mPhysicsComplete = true;
|
||||
}
|
||||
|
||||
if (mHull.size() != 1)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
|
||||
llassert(mHull.size() == 1);
|
||||
|
||||
mThread->mHullMap[mBaseModel] = mHull[0];
|
||||
}
|
||||
|
||||
|
|
@ -1604,11 +1598,8 @@ void LLMeshUploadThread::doWholeModelUpload()
|
|||
physics = data.mModel[LLModel::LOD_HIGH];
|
||||
}
|
||||
|
||||
if (!physics)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
|
||||
llassert(physics != NULL);
|
||||
|
||||
DecompRequest* request = new DecompRequest(physics, data.mBaseModel, this);
|
||||
gMeshRepo.mDecompThread->submitRequest(request);
|
||||
}
|
||||
|
|
@ -2454,10 +2445,6 @@ S32 LLMeshRepository::loadMesh(LLVOVolume* vobj, const LLVolumeParams& mesh_para
|
|||
group->derefLOD(lod);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
}
|
||||
|
||||
return detail;
|
||||
|
|
@ -3142,11 +3129,8 @@ LLSD LLMeshUploadThread::createObject(LLModelInstance& instance)
|
|||
{
|
||||
LLMatrix4 transformation = instance.mTransform;
|
||||
|
||||
if (instance.mMeshID.isNull())
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
|
||||
llassert(instance.mMeshID.notNull());
|
||||
|
||||
// check for reflection
|
||||
BOOL reflected = (transformation.determinant() < 0);
|
||||
|
||||
|
|
@ -3535,11 +3519,6 @@ void LLPhysicsDecomp::doDecomposition()
|
|||
{
|
||||
ret = LLConvexDecomposition::getInstance()->setParam(param->mName, value.asBoolean());
|
||||
}
|
||||
|
||||
if (ret)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
}
|
||||
|
||||
mCurRequest->setStatusMessage("Executing.");
|
||||
|
|
|
|||
|
|
@ -689,17 +689,8 @@ static LLFastTimer::DeclareTimer FTM_REBUILD_VBO("VBO Rebuilt");
|
|||
|
||||
void LLSpatialPartition::rebuildGeom(LLSpatialGroup* group)
|
||||
{
|
||||
/*if (!gPipeline.hasRenderType(mDrawableType))
|
||||
{
|
||||
return;
|
||||
}*/
|
||||
|
||||
if (group->isDead() || !group->isState(LLSpatialGroup::GEOM_DIRTY))
|
||||
{
|
||||
/*if (!group->isState(LLSpatialGroup::GEOM_DIRTY) && mRenderByGroup)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}*/
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -961,21 +952,15 @@ void LLSpatialGroup::setState(U32 state)
|
|||
{
|
||||
mState |= state;
|
||||
|
||||
if (state > LLSpatialGroup::STATE_MASK)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
llassert(state <= LLSpatialGroup::STATE_MASK);
|
||||
}
|
||||
|
||||
void LLSpatialGroup::setState(U32 state, S32 mode)
|
||||
{
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
|
||||
if (state > LLSpatialGroup::STATE_MASK)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
|
||||
llassert(state <= LLSpatialGroup::STATE_MASK);
|
||||
|
||||
if (mode > STATE_MODE_SINGLE)
|
||||
{
|
||||
if (mode == STATE_MODE_DIFF)
|
||||
|
|
@ -1021,20 +1006,14 @@ public:
|
|||
|
||||
void LLSpatialGroup::clearState(U32 state)
|
||||
{
|
||||
if (state > LLSpatialGroup::STATE_MASK)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
llassert(state <= LLSpatialGroup::STATE_MASK);
|
||||
|
||||
mState &= ~state;
|
||||
}
|
||||
|
||||
void LLSpatialGroup::clearState(U32 state, S32 mode)
|
||||
{
|
||||
if (state > LLSpatialGroup::STATE_MASK)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
llassert(state <= LLSpatialGroup::STATE_MASK);
|
||||
|
||||
LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION);
|
||||
|
||||
|
|
@ -1059,10 +1038,7 @@ void LLSpatialGroup::clearState(U32 state, S32 mode)
|
|||
|
||||
BOOL LLSpatialGroup::isState(U32 state) const
|
||||
{
|
||||
if (state > LLSpatialGroup::STATE_MASK)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
llassert(state <= LLSpatialGroup::STATE_MASK);
|
||||
|
||||
return mState & state ? TRUE : FALSE;
|
||||
}
|
||||
|
|
@ -1250,7 +1226,8 @@ void LLSpatialGroup::updateDistance(LLCamera &camera)
|
|||
{
|
||||
if (LLViewerCamera::sCurCameraID != LLViewerCamera::CAMERA_WORLD)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
llwarns << "Attempted to update distance for camera other than world camera!" << llendl;
|
||||
return;
|
||||
}
|
||||
|
||||
#if !LL_RELEASE_FOR_DOWNLOAD
|
||||
|
|
@ -2064,11 +2041,8 @@ public:
|
|||
|
||||
virtual void processGroup(LLSpatialGroup* group)
|
||||
{
|
||||
if (group->isState(LLSpatialGroup::DIRTY) || group->getData().empty())
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
|
||||
llassert(!group->isState(LLSpatialGroup::DIRTY) && !group->getData().empty())
|
||||
|
||||
if (mRes < 2)
|
||||
{
|
||||
if (mCamera->AABBInFrustum(group->mObjectBounds[0], group->mObjectBounds[1]) > 0)
|
||||
|
|
|
|||
|
|
@ -1894,7 +1894,7 @@ U32 LLViewerObject::processUpdateMessage(LLMessageSystem *mesgsys,
|
|||
//
|
||||
//
|
||||
|
||||
// WTF? If we're going to skip this message, why are we
|
||||
// If we're going to skip this message, why are we
|
||||
// doing all the parenting, etc above?
|
||||
U32 packet_id = mesgsys->getCurrentRecvPacketID();
|
||||
if (packet_id < mLatestRecvPacketID &&
|
||||
|
|
|
|||
|
|
@ -980,11 +980,6 @@ void LLVOTree::appendMesh(LLStrider<LLVector3>& vertices,
|
|||
for (S32 i = 0; i < index_count; i++)
|
||||
{
|
||||
U16 index = index_offset + i;
|
||||
if (idx[index] >= vert_start + vert_count ||
|
||||
idx[index] < vert_start)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
*indices++ = idx[index]-vert_start+cur_idx;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4297,11 +4297,6 @@ void LLVolumeGeometryManager::rebuildMesh(LLSpatialGroup* group)
|
|||
face->getGeometryVolume(*volume, face->getTEOffset(),
|
||||
vobj->getRelativeXform(), vobj->getRelativeXformInvTrans(), face->getGeomIndex());
|
||||
}
|
||||
|
||||
if (!face)
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
}
|
||||
|
||||
drawablep->clearState(LLDrawable::REBUILD_ALL);
|
||||
|
|
@ -4356,10 +4351,7 @@ void LLVolumeGeometryManager::rebuildMesh(LLSpatialGroup* group)
|
|||
group->clearState(LLSpatialGroup::MESH_DIRTY | LLSpatialGroup::NEW_DRAWINFO);
|
||||
}
|
||||
|
||||
if (group && group->isState(LLSpatialGroup::NEW_DRAWINFO))
|
||||
{
|
||||
llerrs << "WTF?" << llendl;
|
||||
}
|
||||
llassert(!group || !group->isState(LLSpatialGroup::NEW_DRAWINFO));
|
||||
}
|
||||
|
||||
void LLVolumeGeometryManager::genDrawInfo(LLSpatialGroup* group, U32 mask, std::vector<LLFace*>& faces, BOOL distance_sort)
|
||||
|
|
|
|||
Loading…
Reference in New Issue