diff options
author | leyla_linden <none@none> | 2011-02-24 15:01:14 -0800 |
---|---|---|
committer | leyla_linden <none@none> | 2011-02-24 15:01:14 -0800 |
commit | 095a321eb6eb1edb7125a7338b35b064ab6c3b06 (patch) | |
tree | 6c4e419fedbf6eeb4116933a815b0724130d2fb1 /indra/newview/llmanipscale.cpp | |
parent | b0e64098ba7dabec0b14d0129efa87b5e5a29df2 (diff) |
SH-1045
Mesh Viewer temporarily allows object scaling larger than 10m, then moves the object
Diffstat (limited to 'indra/newview/llmanipscale.cpp')
-rw-r--r-- | indra/newview/llmanipscale.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llmanipscale.cpp b/indra/newview/llmanipscale.cpp index 683f455179..dcbf17e31f 100644 --- a/indra/newview/llmanipscale.cpp +++ b/indra/newview/llmanipscale.cpp @@ -52,6 +52,7 @@ #include "llui.h" #include "llviewercamera.h" #include "llviewerobject.h" +#include "llviewerregion.h" #include "llviewerwindow.h" #include "llhudrender.h" #include "llworld.h" @@ -89,7 +90,10 @@ F32 get_default_max_prim_scale(bool is_flora) { // a bit of a hack, but if it's foilage, we don't want to use the // new larger scale which would result in giant trees and grass - if (gSavedSettings.getBOOL("MeshEnabled") && !is_flora) + if (gSavedSettings.getBOOL("MeshEnabled") && + gAgent.getRegion() && + !gAgent.getRegion()->getCapability("GetMesh").empty() && + !is_flora) { return DEFAULT_MAX_PRIM_SCALE; } |