diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llpanelobject.cpp | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2 meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz |
Second Life viewer sources 1.14.0.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpanelobject.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llpanelobject.cpp b/linden/indra/newview/llpanelobject.cpp index 54e24e2..590eb63 100644 --- a/linden/indra/newview/llpanelobject.cpp +++ b/linden/indra/newview/llpanelobject.cpp | |||
@@ -275,11 +275,11 @@ LLPanelObject::~LLPanelObject() | |||
275 | 275 | ||
276 | void LLPanelObject::getState( ) | 276 | void LLPanelObject::getState( ) |
277 | { | 277 | { |
278 | LLViewerObject* objectp = gSelectMgr->getFirstRootObject(); | 278 | LLViewerObject* objectp = gSelectMgr->getSelection()->getFirstRootObject(); |
279 | LLViewerObject* root_objectp = objectp; | 279 | LLViewerObject* root_objectp = objectp; |
280 | if(!objectp) | 280 | if(!objectp) |
281 | { | 281 | { |
282 | objectp = gSelectMgr->getFirstObject(); | 282 | objectp = gSelectMgr->getSelection()->getFirstObject(); |
283 | // *FIX: shouldn't we just keep the child? | 283 | // *FIX: shouldn't we just keep the child? |
284 | if (objectp) | 284 | if (objectp) |
285 | { | 285 | { |
@@ -391,9 +391,9 @@ void LLPanelObject::getState( ) | |||
391 | owners_identical = gSelectMgr->selectGetOwner(owner_id, owner_name); | 391 | owners_identical = gSelectMgr->selectGetOwner(owner_id, owner_name); |
392 | 392 | ||
393 | // BUG? Check for all objects being editable? | 393 | // BUG? Check for all objects being editable? |
394 | S32 roots_selected = gSelectMgr->getRootObjectCount(); | 394 | S32 roots_selected = gSelectMgr->getSelection()->getRootObjectCount(); |
395 | BOOL editable = root_objectp->permModify(); | 395 | BOOL editable = root_objectp->permModify(); |
396 | S32 selected_count = gSelectMgr->getObjectCount(); | 396 | S32 selected_count = gSelectMgr->getSelection()->getObjectCount(); |
397 | BOOL single_volume = (gSelectMgr->selectionAllPCode( LL_PCODE_VOLUME )) | 397 | BOOL single_volume = (gSelectMgr->selectionAllPCode( LL_PCODE_VOLUME )) |
398 | && (selected_count == 1); | 398 | && (selected_count == 1); |
399 | 399 | ||
@@ -1525,7 +1525,7 @@ void LLPanelObject::draw() | |||
1525 | const LLColor4 blue( 0.f, 0.5f, 1.0f, 1); | 1525 | const LLColor4 blue( 0.f, 0.5f, 1.0f, 1); |
1526 | 1526 | ||
1527 | // Tune the colors of the labels | 1527 | // Tune the colors of the labels |
1528 | LLTool* tool = gToolMgr->getCurrentTool( gKeyboard->currentMask(TRUE) ); | 1528 | LLTool* tool = gToolMgr->getCurrentTool(); |
1529 | 1529 | ||
1530 | if (tool == gToolTranslate) | 1530 | if (tool == gToolTranslate) |
1531 | { | 1531 | { |
@@ -1645,7 +1645,7 @@ void LLPanelObject::onCommitLock(LLUICtrl *ctrl, void *data) | |||
1645 | 1645 | ||
1646 | BOOL new_state = self->mCheckLock->get(); | 1646 | BOOL new_state = self->mCheckLock->get(); |
1647 | 1647 | ||
1648 | gSelectMgr->setObjectPermissions(PERM_OWNER, !new_state, PERM_MOVE | PERM_MODIFY); | 1648 | gSelectMgr->selectionSetObjectPermissions(PERM_OWNER, !new_state, PERM_MOVE | PERM_MODIFY); |
1649 | } | 1649 | } |
1650 | 1650 | ||
1651 | // static | 1651 | // static |