Fix inconsistent link/unlink checking
This commit is contained in:
@@ -2507,13 +2507,13 @@ void LLPanelObject::onPasteParams(void* user_data)
|
|||||||
void LLPanelObject::onLinkObj(void* user_data)
|
void LLPanelObject::onLinkObj(void* user_data)
|
||||||
{
|
{
|
||||||
llinfos << "Attempting link." << llendl;
|
llinfos << "Attempting link." << llendl;
|
||||||
LLSelectMgr::getInstance()->sendLink();
|
LLSelectMgr::getInstance()->linkObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LLPanelObject::onUnlinkObj(void* user_data)
|
void LLPanelObject::onUnlinkObj(void* user_data)
|
||||||
{
|
{
|
||||||
llinfos << "Attempting unlink." << llendl;
|
llinfos << "Attempting unlink." << llendl;
|
||||||
LLSelectMgr::getInstance()->sendDelink();
|
LLSelectMgr::getInstance()->unlinkObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
void LLPanelObject::onPastePos(void* user_data)
|
void LLPanelObject::onPastePos(void* user_data)
|
||||||
|
|||||||
@@ -572,7 +572,7 @@ bool LLSelectMgr::linkObjects()
|
|||||||
}
|
}
|
||||||
|
|
||||||
S32 object_count = LLSelectMgr::getInstance()->getSelection()->getObjectCount();
|
S32 object_count = LLSelectMgr::getInstance()->getSelection()->getObjectCount();
|
||||||
if (object_count > MAX_CHILDREN_PER_TASK + 1)
|
if (gHippoGridManager->getConnectedGrid()->isSecondLife() && (object_count > MAX_CHILDREN_PER_TASK + 1))
|
||||||
{
|
{
|
||||||
LLSD args;
|
LLSD args;
|
||||||
args["COUNT"] = llformat("%d", object_count);
|
args["COUNT"] = llformat("%d", object_count);
|
||||||
|
|||||||
@@ -663,8 +663,6 @@ public:
|
|||||||
void sendAttach(U8 attachment_point, bool replace=true);
|
void sendAttach(U8 attachment_point, bool replace=true);
|
||||||
void sendDetach();
|
void sendDetach();
|
||||||
void sendDropAttachment();
|
void sendDropAttachment();
|
||||||
void sendLink();
|
|
||||||
void sendDelink();
|
|
||||||
//void sendHinge(U8 type);
|
//void sendHinge(U8 type);
|
||||||
//void sendDehinge();
|
//void sendDehinge();
|
||||||
void sendSelect();
|
void sendSelect();
|
||||||
@@ -705,7 +703,8 @@ private:
|
|||||||
void (*pack_body)(LLSelectNode* node, void *user_data),
|
void (*pack_body)(LLSelectNode* node, void *user_data),
|
||||||
void *user_data,
|
void *user_data,
|
||||||
ESendType send_type);
|
ESendType send_type);
|
||||||
|
void sendLink();
|
||||||
|
void sendDelink();
|
||||||
|
|
||||||
static void packAgentID( void *);
|
static void packAgentID( void *);
|
||||||
static void packAgentAndSessionID(void* user_data);
|
static void packAgentAndSessionID(void* user_data);
|
||||||
|
|||||||
@@ -2647,7 +2647,7 @@ class LLPowerfulWizard : public view_listener_t
|
|||||||
*/
|
*/
|
||||||
LLSelectMgr::getInstance()->selectionUpdateTemporary(1);//set temp to TRUE
|
LLSelectMgr::getInstance()->selectionUpdateTemporary(1);//set temp to TRUE
|
||||||
LLSelectMgr::getInstance()->selectionUpdatePhysics(1);
|
LLSelectMgr::getInstance()->selectionUpdatePhysics(1);
|
||||||
LLSelectMgr::getInstance()->sendDelink();
|
LLSelectMgr::getInstance()->unlinkObjects();
|
||||||
LLSelectMgr::getInstance()->deselectAll();
|
LLSelectMgr::getInstance()->deselectAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1103,7 +1103,7 @@ void LLObjectBackup::primUpdate(LLViewerObject* object)
|
|||||||
// Now link
|
// Now link
|
||||||
LLSelectMgr::getInstance()->deselectAll();
|
LLSelectMgr::getInstance()->deselectAll();
|
||||||
LLSelectMgr::getInstance()->selectObjectAndFamily(mToSelect, true);
|
LLSelectMgr::getInstance()->selectObjectAndFamily(mToSelect, true);
|
||||||
LLSelectMgr::getInstance()->sendLink();
|
LLSelectMgr::getInstance()->linkObjects();
|
||||||
LLViewerObject* root = mToSelect.back();
|
LLViewerObject* root = mToSelect.back();
|
||||||
root->setRotation(mRootRot);
|
root->setRotation(mRootRot);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user