aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolgrab.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:56 -0500
committerJacek Antonelli2008-08-15 23:44:56 -0500
commitc07901e29ed545bbb02e3bddf148fe1104b94e9f (patch)
treef1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/newview/lltoolgrab.cpp
parentSecond Life viewer sources 1.15.0.2 (diff)
downloadmeta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz
Second Life viewer sources 1.15.1.3
Diffstat (limited to 'linden/indra/newview/lltoolgrab.cpp')
-rw-r--r--linden/indra/newview/lltoolgrab.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/linden/indra/newview/lltoolgrab.cpp b/linden/indra/newview/lltoolgrab.cpp
index 502e2be..b56e762 100644
--- a/linden/indra/newview/lltoolgrab.cpp
+++ b/linden/indra/newview/lltoolgrab.cpp
@@ -180,6 +180,12 @@ BOOL LLToolGrab::handleObjectHit(LLViewerObject *objectp, S32 x, S32 y, MASK mas
180 llinfos << "LLToolGrab handleObjectHit " << mMouseDownX << "," << mMouseDownY << llendl; 180 llinfos << "LLToolGrab handleObjectHit " << mMouseDownX << "," << mMouseDownY << llendl;
181 } 181 }
182 182
183 if (NULL == objectp) // unexpected
184 {
185 llwarns << "objectp was NULL; returning FALSE" << llendl;
186 return FALSE;
187 }
188
183 if (objectp->isAvatar()) 189 if (objectp->isAvatar())
184 { 190 {
185 if (gGrabTransientTool) 191 if (gGrabTransientTool)
@@ -198,7 +204,7 @@ BOOL LLToolGrab::handleObjectHit(LLViewerObject *objectp, S32 x, S32 y, MASK mas
198 // objectp = (LLViewerObject *)objectp->getRoot(); 204 // objectp = (LLViewerObject *)objectp->getRoot();
199 205
200 LLViewerObject* parent = objectp->getRootEdit(); 206 LLViewerObject* parent = objectp->getRootEdit();
201 BOOL script_touch = (objectp && objectp->flagHandleTouch()) || (parent && parent->flagHandleTouch()); 207 BOOL script_touch = (objectp->flagHandleTouch()) || (parent && parent->flagHandleTouch());
202 208
203 // Clicks on scripted or physical objects are temporary grabs, so 209 // Clicks on scripted or physical objects are temporary grabs, so
204 // not "Build mode" 210 // not "Build mode"