diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lltoolgrab.cpp | 8 |
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" |