BOOL LLToolSelectRect::handleMouseDown(S32 x, S32 y, MASK mask) { // handlePick(gViewerWindow->pickImmediate(x, y, TRUE)); // [SL:KB] - Patch: UI-PickRiggedAttachment | Checked: 2012-07-12 (Catznip-3.3) handlePick(gViewerWindow->pickImmediate(x, y, TRUE, FALSE)); // [/SL:KB] LLTool::handleMouseDown(x, y, mask); return mPick.getObject().notNull(); }
void GLWidget :: finishPick() { GLint hits; // Reset projection glMatrixMode(GL_PROJECTION); glPopMatrix(); // Return to GL_MODELVIEW glMatrixMode(GL_MODELVIEW); // Get number of objects drawed in that area // and return to render mode hits = glRenderMode(GL_RENDER); // Handle the hits handlePick(hits, selectBuffer); }