diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llvopartgroup.cpp | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2 meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz |
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/newview/llvopartgroup.cpp')
-rw-r--r-- | linden/indra/newview/llvopartgroup.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/newview/llvopartgroup.cpp b/linden/indra/newview/llvopartgroup.cpp index 79255ca..7d1fec4 100644 --- a/linden/indra/newview/llvopartgroup.cpp +++ b/linden/indra/newview/llvopartgroup.cpp | |||
@@ -95,7 +95,7 @@ void LLVOPartGroup::setPixelAreaAndAngle(LLAgent &agent) | |||
95 | { | 95 | { |
96 | // mPixelArea is calculated during render | 96 | // mPixelArea is calculated during render |
97 | F32 mid_scale = getMidScale(); | 97 | F32 mid_scale = getMidScale(); |
98 | F32 range = (getRenderPosition()-gCamera->getOrigin()).magVec(); | 98 | F32 range = (getRenderPosition()-LLViewerCamera::getInstance()->getOrigin()).magVec(); |
99 | 99 | ||
100 | if (range < 0.001f || isHUDAttachment()) // range == zero | 100 | if (range < 0.001f || isHUDAttachment()) // range == zero |
101 | { | 101 | { |
@@ -141,7 +141,7 @@ BOOL LLVOPartGroup::updateGeometry(LLDrawable *drawable) | |||
141 | 141 | ||
142 | LLVector3 at; | 142 | LLVector3 at; |
143 | LLVector3 position_agent; | 143 | LLVector3 position_agent; |
144 | LLVector3 camera_agent = gCamera->getOrigin(); | 144 | LLVector3 camera_agent = LLViewerCamera::getInstance()->getOrigin(); |
145 | 145 | ||
146 | S32 num_parts = mViewerPartGroupp->getCount(); | 146 | S32 num_parts = mViewerPartGroupp->getCount(); |
147 | LLFace *facep; | 147 | LLFace *facep; |
@@ -176,7 +176,7 @@ BOOL LLVOPartGroup::updateGeometry(LLDrawable *drawable) | |||
176 | F32 tot_area = 0; | 176 | F32 tot_area = 0; |
177 | 177 | ||
178 | F32 max_area = LLViewerPartSim::getMaxPartCount() * MAX_PARTICLE_AREA_SCALE; | 178 | F32 max_area = LLViewerPartSim::getMaxPartCount() * MAX_PARTICLE_AREA_SCALE; |
179 | F32 pixel_meter_ratio = gCamera->getPixelMeterRatio(); | 179 | F32 pixel_meter_ratio = LLViewerCamera::getInstance()->getPixelMeterRatio(); |
180 | pixel_meter_ratio *= pixel_meter_ratio; | 180 | pixel_meter_ratio *= pixel_meter_ratio; |
181 | 181 | ||
182 | S32 count=0; | 182 | S32 count=0; |
@@ -309,7 +309,7 @@ void LLVOPartGroup::getGeometry(S32 idx, | |||
309 | right *= 0.5f*part.mScale.mV[0]; | 309 | right *= 0.5f*part.mScale.mV[0]; |
310 | up *= 0.5f*part.mScale.mV[1]; | 310 | up *= 0.5f*part.mScale.mV[1]; |
311 | 311 | ||
312 | const LLVector3& normal = -gCamera->getXAxis(); | 312 | const LLVector3& normal = -LLViewerCamera::getInstance()->getXAxis(); |
313 | 313 | ||
314 | *verticesp++ = part_pos_agent + up - right; | 314 | *verticesp++ = part_pos_agent + up - right; |
315 | *verticesp++ = part_pos_agent - up - right; | 315 | *verticesp++ = part_pos_agent - up - right; |
@@ -391,7 +391,7 @@ void LLParticlePartition::addGeometryCount(LLSpatialGroup* group, U32& vertex_co | |||
391 | } | 391 | } |
392 | 392 | ||
393 | count++; | 393 | count++; |
394 | facep->mDistance = (facep->mCenterLocal - gCamera->getOrigin()) * gCamera->getAtAxis(); | 394 | facep->mDistance = (facep->mCenterLocal - LLViewerCamera::getInstance()->getOrigin()) * LLViewerCamera::getInstance()->getAtAxis(); |
395 | obj->mDepth += facep->mDistance; | 395 | obj->mDepth += facep->mDistance; |
396 | 396 | ||
397 | mFaceList.push_back(facep); | 397 | mFaceList.push_back(facep); |