diff options
author | callum <none@none> | 2010-11-15 17:21:27 -0800 |
---|---|---|
committer | callum <none@none> | 2010-11-15 17:21:27 -0800 |
commit | b4efcccce7438a72078c02dd404080d6dee37622 (patch) | |
tree | 6d4890e3ace464bba7c81d3235ab799538080b02 /indra/newview/llworld.cpp | |
parent | a52e06d209925d1942230e8c129d8b19af7b88b5 (diff) | |
parent | e8e1d7e629b9a4a65cde766ed81334140a749428 (diff) |
Merge with tip of of viewer-development (http://hg.secondlife.com/viewer-development)
Diffstat (limited to 'indra/newview/llworld.cpp')
-rw-r--r-- | indra/newview/llworld.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llworld.cpp b/indra/newview/llworld.cpp index 8fabaaba80..399442e5c4 100644 --- a/indra/newview/llworld.cpp +++ b/indra/newview/llworld.cpp @@ -431,14 +431,15 @@ BOOL LLWorld::positionRegionValidGlobal(const LLVector3d &pos_global) // Allow objects to go up to their radius underground. -F32 LLWorld::getMinAllowedZ(LLViewerObject* object) +F32 LLWorld::getMinAllowedZ(LLViewerObject* object, const LLVector3d &global_pos) { - F32 land_height = resolveLandHeightGlobal(object->getPositionGlobal()); + F32 land_height = resolveLandHeightGlobal(global_pos); F32 radius = 0.5f * object->getScale().length(); return land_height - radius; } + LLViewerRegion* LLWorld::resolveRegionGlobal(LLVector3 &pos_region, const LLVector3d &pos_global) { LLViewerRegion *regionp = getRegionFromPosGlobal(pos_global); |