Merge cleanup.
parent
13202e744c
commit
93ea3d2850
|
|
@ -93,8 +93,6 @@ const F32 SKEW_MAX = 0.95f;
|
|||
const F32 SCULPT_MIN_AREA = 0.002f;
|
||||
const S32 SCULPT_MIN_AREA_DETAIL = 1;
|
||||
|
||||
#define GEN_TRI_STRIP 0
|
||||
|
||||
BOOL check_same_clock_dir( const LLVector3& pt1, const LLVector3& pt2, const LLVector3& pt3, const LLVector3& norm)
|
||||
{
|
||||
LLVector3 test = (pt2-pt1)%(pt3-pt2);
|
||||
|
|
@ -5663,8 +5661,6 @@ BOOL LLVolumeFace::createUnCutCubeCap(LLVolume* volume, BOOL partial_build)
|
|||
{
|
||||
*out++ = ((gy*(grid_size+1))+gx+idxs[i]);
|
||||
}
|
||||
#if GEN_TRI_STRIP
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -5672,14 +5668,9 @@ BOOL LLVolumeFace::createUnCutCubeCap(LLVolume* volume, BOOL partial_build)
|
|||
{
|
||||
*out++ = ((gy*(grid_size+1))+gx+idxs[i]);
|
||||
}
|
||||
#if GEN_TRI_STRIP
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
#if GEN_TRI_STRIP
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
@ -6539,13 +6530,9 @@ BOOL LLVolumeFace::createSide(LLVolume* volume, BOOL partial_build)
|
|||
|
||||
if (!partial_build)
|
||||
{
|
||||
#if GEN_TRI_STRIP
|
||||
#endif
|
||||
// Now we generate the indices.
|
||||
for (t = 0; t < (mNumT-1); t++)
|
||||
{
|
||||
#if GEN_TRI_STRIP
|
||||
#endif
|
||||
for (s = 0; s < (mNumS-1); s++)
|
||||
{
|
||||
mIndices[cur_index++] = s + mNumS*t; //bottom left
|
||||
|
|
@ -6555,8 +6542,6 @@ BOOL LLVolumeFace::createSide(LLVolume* volume, BOOL partial_build)
|
|||
mIndices[cur_index++] = s+1 + mNumS*t; //bottom right
|
||||
mIndices[cur_index++] = s+1 + mNumS*(t+1); //top right
|
||||
|
||||
#if GEN_TRI_STRIP
|
||||
#endif
|
||||
mEdge[cur_edge++] = (mNumS-1)*2*t+s*2+1; //bottom left/top right neighbor face
|
||||
if (t < mNumT-2) { //top right/top left neighbor face
|
||||
mEdge[cur_edge++] = (mNumS-1)*2*(t+1)+s*2+1;
|
||||
|
|
@ -6597,11 +6582,7 @@ BOOL LLVolumeFace::createSide(LLVolume* volume, BOOL partial_build)
|
|||
}
|
||||
mEdge[cur_edge++] = (mNumS-1)*2*t+s*2; //top right/bottom left neighbor face
|
||||
}
|
||||
#if GEN_TRI_STRIP
|
||||
#endif
|
||||
#if GEN_TRI_STRIP
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
//generate normals
|
||||
|
|
@ -6684,7 +6665,6 @@ BOOL LLVolumeFace::createSide(LLVolume* volume, BOOL partial_build)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
else // logic for sculpt volumes
|
||||
{
|
||||
BOOL average_poles = FALSE;
|
||||
|
|
|
|||
|
|
@ -3515,8 +3515,6 @@ static LLFastTimer::DeclareTimer FTM_REGION_UPDATE("Update Region");
|
|||
static LLFastTimer::DeclareTimer FTM_WORLD_UPDATE("Update World");
|
||||
static LLFastTimer::DeclareTimer FTM_NETWORK("Network");
|
||||
static LLFastTimer::DeclareTimer FTM_AGENT_NETWORK("Agent Network");
|
||||
static LLFastTimer::DeclareTimer FTM_AGENT_AUTOPILOT("Autopilot");
|
||||
static LLFastTimer::DeclareTimer FTM_AGENT_UPDATE("Update");
|
||||
static LLFastTimer::DeclareTimer FTM_VLMANAGER("VL Manager");
|
||||
|
||||
///////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -999,7 +999,7 @@ void LLSnapshotLivePreview::saveTexture()
|
|||
void *userdata = NULL;
|
||||
upload_new_resource(tid, // tid
|
||||
LLAssetType::AT_TEXTURE,
|
||||
snapname,
|
||||
"Snapshot : " + pos_string,
|
||||
"Taken by " + who_took_it + " at " + pos_string,
|
||||
0,
|
||||
LLFolderType::FT_SNAPSHOT_CATEGORY,
|
||||
|
|
@ -1007,7 +1007,7 @@ void LLSnapshotLivePreview::saveTexture()
|
|||
PERM_ALL, // Note: Snapshots to inventory is a special case of content upload
|
||||
PERM_NONE, // that ignores the user's premissions preferences and continues to
|
||||
PERM_NONE, // always use these fairly permissive hard-coded initial perms. - MG
|
||||
snapname,
|
||||
"Snapshot : " + pos_string,
|
||||
callback, expected_upload_cost, userdata);
|
||||
gViewerWindow->playSnapshotAnimAndSound();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1289,6 +1289,8 @@ void LLPanelObject::sendPhysicsParam()
|
|||
body.append(LLSelectMgr::getInstance()->getSelection()->getFirstObject()->getID());
|
||||
|
||||
LLHTTPClient::post( url, body, new CostResponder(body[0].asInteger()) );
|
||||
}
|
||||
|
||||
void LLPanelObject::sendCastShadows()
|
||||
{
|
||||
BOOL value = mCheckCastShadows->get();
|
||||
|
|
|
|||
|
|
@ -96,13 +96,8 @@ LLPointer<LLObjectMediaNavigateClient> LLVOVolume::sObjectMediaNavigateClient =
|
|||
|
||||
static LLFastTimer::DeclareTimer FTM_GEN_TRIANGLES("Generate Triangles");
|
||||
static LLFastTimer::DeclareTimer FTM_GEN_VOLUME("Generate Volumes");
|
||||
static LLFastTimer::DeclareTimer FTM_BUILD_MESH("Mesh");
|
||||
static LLFastTimer::DeclareTimer FTM_MESH_VFS("VFS");
|
||||
static LLFastTimer::DeclareTimer FTM_MESH_STREAM("Stream");
|
||||
static LLFastTimer::DeclareTimer FTM_MESH_FACES("Faces");
|
||||
static LLFastTimer::DeclareTimer FTM_VOLUME_TEXTURES("Volume Textures");
|
||||
|
||||
|
||||
// Implementation class of LLMediaDataClientObject. See llmediadataclient.h
|
||||
class LLMediaDataClientObjectImpl : public LLMediaDataClientObject
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue