diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llflexibleobject.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/linden/indra/newview/llflexibleobject.cpp b/linden/indra/newview/llflexibleobject.cpp index e9c2332..fe7fafa 100644 --- a/linden/indra/newview/llflexibleobject.cpp +++ b/linden/indra/newview/llflexibleobject.cpp | |||
@@ -36,7 +36,7 @@ | |||
36 | #include "llface.h" | 36 | #include "llface.h" |
37 | #include "llflexibleobject.h" | 37 | #include "llflexibleobject.h" |
38 | #include "llglheaders.h" | 38 | #include "llglheaders.h" |
39 | #include "llsphere.h" | 39 | #include "llrendersphere.h" |
40 | #include "llviewerobject.h" | 40 | #include "llviewerobject.h" |
41 | #include "llimagegl.h" | 41 | #include "llimagegl.h" |
42 | #include "llagent.h" | 42 | #include "llagent.h" |
@@ -246,7 +246,6 @@ void LLVolumeImplFlexible::setAttributesOfAllSections() | |||
246 | 246 | ||
247 | void LLVolumeImplFlexible::onSetVolume(const LLVolumeParams &volume_params, const S32 detail) | 247 | void LLVolumeImplFlexible::onSetVolume(const LLVolumeParams &volume_params, const S32 detail) |
248 | { | 248 | { |
249 | |||
250 | } | 249 | } |
251 | 250 | ||
252 | //--------------------------------------------------------------------------------- | 251 | //--------------------------------------------------------------------------------- |
@@ -280,7 +279,7 @@ BOOL LLVolumeImplFlexible::doIdleUpdate(LLAgent &agent, LLWorld &world, const F6 | |||
280 | F32 app_angle = llround((F32) atan2( mVO->getScale().mV[2]*2.f, mVO->mDrawable->mDistanceWRTCamera) * RAD_TO_DEG, 0.01f); | 279 | F32 app_angle = llround((F32) atan2( mVO->getScale().mV[2]*2.f, mVO->mDrawable->mDistanceWRTCamera) * RAD_TO_DEG, 0.01f); |
281 | 280 | ||
282 | // Rendering sections increases with visible angle on the screen | 281 | // Rendering sections increases with visible angle on the screen |
283 | mRenderRes = (S32)(FLEXIBLE_OBJECT_MAX_SECTIONS*4*app_angle*DEG_TO_RAD/gCamera->getView()); | 282 | mRenderRes = (S32)(FLEXIBLE_OBJECT_MAX_SECTIONS*4*app_angle*DEG_TO_RAD/LLViewerCamera::getInstance()->getView()); |
284 | if (mRenderRes > FLEXIBLE_OBJECT_MAX_SECTIONS) | 283 | if (mRenderRes > FLEXIBLE_OBJECT_MAX_SECTIONS) |
285 | { | 284 | { |
286 | mRenderRes = FLEXIBLE_OBJECT_MAX_SECTIONS; | 285 | mRenderRes = FLEXIBLE_OBJECT_MAX_SECTIONS; |
@@ -330,7 +329,7 @@ BOOL LLVolumeImplFlexible::doIdleUpdate(LLAgent &agent, LLWorld &world, const F6 | |||
330 | id = parent->getVolumeInterfaceID(); | 329 | id = parent->getVolumeInterfaceID(); |
331 | } | 330 | } |
332 | 331 | ||
333 | U32 update_period = (U32) (gCamera->getScreenPixelArea()*0.01f/(pixel_area*(sUpdateFactor+1.f)))+1; | 332 | U32 update_period = (U32) (LLViewerCamera::getInstance()->getScreenPixelArea()*0.01f/(pixel_area*(sUpdateFactor+1.f)))+1; |
334 | 333 | ||
335 | if ((LLDrawable::getCurrentFrame()+id)%update_period == 0) | 334 | if ((LLDrawable::getCurrentFrame()+id)%update_period == 0) |
336 | { | 335 | { |
@@ -359,7 +358,7 @@ void LLVolumeImplFlexible::doFlexibleUpdate() | |||
359 | if (mSimulateRes == 0) | 358 | if (mSimulateRes == 0) |
360 | { | 359 | { |
361 | mVO->markForUpdate(TRUE); | 360 | mVO->markForUpdate(TRUE); |
362 | if (!doIdleUpdate(gAgent, *gWorldp, 0.0)) | 361 | if (!doIdleUpdate(gAgent, *LLWorld::getInstance(), 0.0)) |
363 | { | 362 | { |
364 | return; // we did not get updated or initialized, proceeding without can be dangerous | 363 | return; // we did not get updated or initialized, proceeding without can be dangerous |
365 | } | 364 | } |