diff options
author | Jacek Antonelli | 2009-06-13 13:17:14 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-06-13 13:17:20 -0500 |
commit | 0517fe4322443bdc317f8185590a63134e3f8394 (patch) | |
tree | 942c9c26d0792accc928010a113d123c5409659b /linden/indra/newview/lldrawable.cpp | |
parent | Second Life viewer sources 1.23.2-RC (diff) | |
download | meta-impy-0517fe4322443bdc317f8185590a63134e3f8394.zip meta-impy-0517fe4322443bdc317f8185590a63134e3f8394.tar.gz meta-impy-0517fe4322443bdc317f8185590a63134e3f8394.tar.bz2 meta-impy-0517fe4322443bdc317f8185590a63134e3f8394.tar.xz |
Second Life viewer sources 1.23.3-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lldrawable.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/linden/indra/newview/lldrawable.cpp b/linden/indra/newview/lldrawable.cpp index 47e4a22..44a5de9 100644 --- a/linden/indra/newview/lldrawable.cpp +++ b/linden/indra/newview/lldrawable.cpp | |||
@@ -673,7 +673,7 @@ BOOL LLDrawable::updateMoveDamped() | |||
673 | return done_moving; | 673 | return done_moving; |
674 | } | 674 | } |
675 | 675 | ||
676 | void LLDrawable::updateDistance(LLCamera& camera) | 676 | void LLDrawable::updateDistance(LLCamera& camera, bool force_update) |
677 | { | 677 | { |
678 | //switch LOD with the spatial group to avoid artifacts | 678 | //switch LOD with the spatial group to avoid artifacts |
679 | //LLSpatialGroup* sg = getSpatialGroup(); | 679 | //LLSpatialGroup* sg = getSpatialGroup(); |
@@ -695,7 +695,7 @@ void LLDrawable::updateDistance(LLCamera& camera) | |||
695 | for (S32 i = 0; i < getNumFaces(); i++) | 695 | for (S32 i = 0; i < getNumFaces(); i++) |
696 | { | 696 | { |
697 | LLFace* facep = getFace(i); | 697 | LLFace* facep = getFace(i); |
698 | if (facep->getPoolType() == LLDrawPool::POOL_ALPHA) | 698 | if (force_update || facep->getPoolType() == LLDrawPool::POOL_ALPHA) |
699 | { | 699 | { |
700 | LLVector3 box = (facep->mExtents[1] - facep->mExtents[0]) * 0.25f; | 700 | LLVector3 box = (facep->mExtents[1] - facep->mExtents[0]) * 0.25f; |
701 | LLVector3 v = (facep->mCenterLocal-camera.getOrigin()); | 701 | LLVector3 v = (facep->mCenterLocal-camera.getOrigin()); |
@@ -736,11 +736,7 @@ void LLDrawable::updateTexture() | |||
736 | 736 | ||
737 | if (getVOVolume()) | 737 | if (getVOVolume()) |
738 | { | 738 | { |
739 | if (!isActive()) | 739 | if (isActive()) |
740 | { | ||
741 | //gPipeline.markMoved(this); | ||
742 | } | ||
743 | else | ||
744 | { | 740 | { |
745 | if (isRoot()) | 741 | if (isRoot()) |
746 | { | 742 | { |
@@ -1269,7 +1265,7 @@ void LLSpatialBridge::setVisible(LLCamera& camera_in, std::vector<LLDrawable*>* | |||
1269 | } | 1265 | } |
1270 | } | 1266 | } |
1271 | 1267 | ||
1272 | void LLSpatialBridge::updateDistance(LLCamera& camera_in) | 1268 | void LLSpatialBridge::updateDistance(LLCamera& camera_in, bool force_update) |
1273 | { | 1269 | { |
1274 | if (mDrawable == NULL) | 1270 | if (mDrawable == NULL) |
1275 | { | 1271 | { |
@@ -1279,7 +1275,7 @@ void LLSpatialBridge::updateDistance(LLCamera& camera_in) | |||
1279 | 1275 | ||
1280 | LLCamera camera = transformCamera(camera_in); | 1276 | LLCamera camera = transformCamera(camera_in); |
1281 | 1277 | ||
1282 | mDrawable->updateDistance(camera); | 1278 | mDrawable->updateDistance(camera, force_update); |
1283 | 1279 | ||
1284 | if (mDrawable->getVObj()) | 1280 | if (mDrawable->getVObj()) |
1285 | { | 1281 | { |
@@ -1296,7 +1292,7 @@ void LLSpatialBridge::updateDistance(LLCamera& camera_in) | |||
1296 | 1292 | ||
1297 | if (!drawable->isAvatar()) | 1293 | if (!drawable->isAvatar()) |
1298 | { | 1294 | { |
1299 | drawable->updateDistance(camera); | 1295 | drawable->updateDistance(camera, force_update); |
1300 | } | 1296 | } |
1301 | } | 1297 | } |
1302 | } | 1298 | } |