summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorJosh Bell <josh@lindenlab.com>2008-06-07 00:47:05 +0000
committerJosh Bell <josh@lindenlab.com>2008-06-07 00:47:05 +0000
commit290f2f05f7c2c061ba82f83594e4f7fb6a043ced (patch)
tree648819527f93c4b398aaace5fb456afc983c2b15 /indra/newview
parent810a0b3dcee41ec657c94ccb26003b9b4e20e141 (diff)
svn merge -r 88991:89027 svn+ssh://svn.lindenlab.com/svn/linden/branches/Branch_1-22-2-Server --> release
Due to the gnarly history of the source branch and merge history of release, combine with cmake header and gcc-fu, this was an "interesting" merge.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/app_settings/settings.xml11
-rw-r--r--indra/newview/llagent.h2
-rw-r--r--indra/newview/llvosky.h2
-rw-r--r--indra/newview/llworld.cpp6
-rw-r--r--indra/newview/pipeline.cpp10
5 files changed, 21 insertions, 10 deletions
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml
index 987ae79d59..eb04b430d7 100644
--- a/indra/newview/app_settings/settings.xml
+++ b/indra/newview/app_settings/settings.xml
@@ -4123,6 +4123,17 @@
<key>Value</key>
<integer>0</integer>
</map>
+ <key>LSLFindCaseInsensitivity</key>
+ <map>
+ <key>Comment</key>
+ <string>Use case insensitivity when searching in LSL editor</string>
+ <key>Persist</key>
+ <integer>1</integer>
+ <key>Type</key>
+ <string>Boolean</string>
+ <key>Value</key>
+ <integer>0</integer>
+ </map>
<key>LSLHelpRect</key>
<map>
<key>Comment</key>
diff --git a/indra/newview/llagent.h b/indra/newview/llagent.h
index b50fb745ca..281b2d0c88 100644
--- a/indra/newview/llagent.h
+++ b/indra/newview/llagent.h
@@ -525,7 +525,7 @@ public:
BOOL sitCameraEnabled() { return mSitCameraEnabled; }
- F32 getCurrentCameraBuildOffset() { return (F32)mCameraFocusOffset.magVec(); }
+ F32 getCurrentCameraBuildOffset() { return (F32)mCameraFocusOffset.length(); }
// look at behavior
BOOL setLookAt(ELookAtType target_type, LLViewerObject *object = NULL, LLVector3 position = LLVector3::zero);
diff --git a/indra/newview/llvosky.h b/indra/newview/llvosky.h
index c2ab9ae6a4..34bc7a794e 100644
--- a/indra/newview/llvosky.h
+++ b/indra/newview/llvosky.h
@@ -555,7 +555,7 @@ public:
LLColor4U getFadeColor() const { return mFadeColor; }
F32 getFogRatio() const { return mFogRatio; }
void setCloudDensity(F32 cloud_density) { mCloudDensity = cloud_density; }
- void setWind ( const LLVector3& wind ) { mWind = wind.magVec(); }
+ void setWind ( const LLVector3& wind ) { mWind = wind.length(); }
const LLVector3 &getCameraPosAgent() const { return mCameraPosAgent; }
LLVector3 getEarthCenter() const { return mEarthCenter; }
diff --git a/indra/newview/llworld.cpp b/indra/newview/llworld.cpp
index 7a2acbb094..08c593755b 100644
--- a/indra/newview/llworld.cpp
+++ b/indra/newview/llworld.cpp
@@ -418,7 +418,7 @@ BOOL LLWorld::positionRegionValidGlobal(const LLVector3d &pos_global)
F32 LLWorld::getMinAllowedZ(LLViewerObject* object)
{
F32 land_height = resolveLandHeightGlobal(object->getPositionGlobal());
- F32 radius = 0.5f * object->getScale().magVec();
+ F32 radius = 0.5f * object->getScale().length();
return land_height - radius;
}
@@ -497,7 +497,7 @@ F32 LLWorld::resolveStepHeightGlobal(const LLVOAvatar* avatarp, const LLVector3d
}
// calculate the length of the segment
- F32 segment_length = (F32)((point_a - point_b).magVec());
+ F32 segment_length = (F32)((point_a - point_b).length());
if (0.0f == segment_length)
{
intersection = point_a;
@@ -775,7 +775,7 @@ void LLWorld::printPacketsLost()
{
LLVector3d range = regionp->getCenterGlobal() - gAgent.getPositionGlobal();
- llinfos << regionp->getHost() << ", range: " << range.magVec()
+ llinfos << regionp->getHost() << ", range: " << range.length()
<< " packets lost: " << cdp->getPacketsLost() << llendl;
}
}
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 643c1ec055..539379c9a1 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -870,7 +870,7 @@ void LLPipeline::allocDrawable(LLViewerObject *vobj)
//encompass completely sheared objects by taking
//the most extreme point possible (<1,1,0.5>)
- drawable->setRadius(LLVector3(1,1,0.5f).scaleVec(vobj->getScale()).magVec());
+ drawable->setRadius(LLVector3(1,1,0.5f).scaleVec(vobj->getScale()).length());
if (vobj->isOrphaned())
{
drawable->setState(LLDrawable::FORCE_INVISIBLE);
@@ -1124,7 +1124,7 @@ void LLPipeline::updateMove()
F32 LLPipeline::calcPixelArea(LLVector3 center, LLVector3 size, LLCamera &camera)
{
LLVector3 lookAt = center - camera.getOrigin();
- F32 dist = lookAt.magVec();
+ F32 dist = lookAt.length();
//ramp down distance for nearby objects
if (dist < 16.f)
@@ -1135,7 +1135,7 @@ F32 LLPipeline::calcPixelArea(LLVector3 center, LLVector3 size, LLCamera &camera
}
//get area of circle around node
- F32 app_angle = atanf(size.magVec()/dist);
+ F32 app_angle = atanf(size.length()/dist);
F32 radius = app_angle*LLDrawable::sCurPixelAngle;
return radius*radius * 3.14159f;
}
@@ -3123,7 +3123,7 @@ static F32 calc_light_dist(LLVOVolume* light, const LLVector3& cam_pos, F32 max_
F32 radius = light->getLightRadius();
BOOL selected = light->isSelected();
LLVector3 dpos = light->getRenderPosition() - cam_pos;
- F32 dist2 = dpos.magVecSquared();
+ F32 dist2 = dpos.lengthSquared();
if (!selected && dist2 > (max_dist + radius)*(max_dist + radius))
{
return max_dist;
@@ -5143,7 +5143,7 @@ void LLPipeline::generateImpostor(LLVOAvatar* avatar)
glMatrixMode(GL_PROJECTION);
glPushMatrix();
//glh::matrix4f ortho = gl_ortho(-tdim.mV[0], tdim.mV[0], -tdim.mV[1], tdim.mV[1], 1.0, 256.0);
- F32 distance = (pos-camera.getOrigin()).magVec();
+ F32 distance = (pos-camera.getOrigin()).length();
F32 fov = atanf(tdim.mV[1]/distance)*2.f*RAD_TO_DEG;
F32 aspect = tdim.mV[0]/tdim.mV[1]; //128.f/256.f;
glh::matrix4f persp = gl_perspective(fov, aspect, 1.f, 256.f);