aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelface.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llpanelface.cpp
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-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 'linden/indra/newview/llpanelface.cpp')
-rw-r--r--linden/indra/newview/llpanelface.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/linden/indra/newview/llpanelface.cpp b/linden/indra/newview/llpanelface.cpp
index 56deb91..c69d765 100644
--- a/linden/indra/newview/llpanelface.cpp
+++ b/linden/indra/newview/llpanelface.cpp
@@ -257,7 +257,8 @@ void LLPanelFace::sendTextureInfo()
257{ 257{
258 S32 te; 258 S32 te;
259 LLViewerObject* object; 259 LLViewerObject* object;
260 for ( gSelectMgr->getFirstTE(&object, &te); object; gSelectMgr->getNextTE(&object, &te) ) 260 LLObjectSelectionHandle selection = gSelectMgr->getSelection();
261 for ( selection->getFirstTE(&object, &te); object; selection->getNextTE(&object, &te) )
261 { 262 {
262 BOOL valid; 263 BOOL valid;
263 F32 value; 264 F32 value;
@@ -336,7 +337,7 @@ void LLPanelFace::sendTextureInfo()
336 } 337 }
337 } 338 }
338 339
339 for ( object = gSelectMgr->getFirstObject(); object; object = gSelectMgr->getNextObject() ) 340 for ( object = gSelectMgr->getSelection()->getFirstObject(); object; object = gSelectMgr->getSelection()->getNextObject() )
340 { 341 {
341 object->sendTEUpdate(); 342 object->sendTEUpdate();
342 } 343 }
@@ -344,7 +345,7 @@ void LLPanelFace::sendTextureInfo()
344 345
345void LLPanelFace::getState() 346void LLPanelFace::getState()
346{ 347{
347 LLViewerObject* objectp = gSelectMgr->getFirstObject(); 348 LLViewerObject* objectp = gSelectMgr->getSelection()->getFirstObject();
348 349
349 if( objectp 350 if( objectp
350 && objectp->getPCode() == LL_PCODE_VOLUME) 351 && objectp->getPCode() == LL_PCODE_VOLUME)
@@ -619,7 +620,7 @@ BOOL LLPanelFace::allFacesSameValue( F32 (get_face_value(LLViewerObject*, S32)),
619 // Get the value from the primary selected TE 620 // Get the value from the primary selected TE
620 F32 first_value = *value; 621 F32 first_value = *value;
621 BOOL got_first = FALSE; 622 BOOL got_first = FALSE;
622 gSelectMgr->getPrimaryTE(&object, &te); 623 gSelectMgr->getSelection()->getPrimaryTE(&object, &te);
623 if (object) 624 if (object)
624 { 625 {
625 first_value = get_face_value(object, te); 626 first_value = get_face_value(object, te);
@@ -628,7 +629,8 @@ BOOL LLPanelFace::allFacesSameValue( F32 (get_face_value(LLViewerObject*, S32)),
628 629
629 // Now iterate through all TEs to test for sameness 630 // Now iterate through all TEs to test for sameness
630 BOOL identical = TRUE; 631 BOOL identical = TRUE;
631 for ( gSelectMgr->getFirstTE(&object, &te); object; gSelectMgr->getNextTE(&object, &te) ) 632 LLObjectSelectionHandle selection = gSelectMgr->getSelection();
633 for ( selection->getFirstTE(&object, &te); object; selection->getNextTE(&object, &te) )
632 { 634 {
633 if (!got_first) 635 if (!got_first)
634 { 636 {
@@ -779,13 +781,13 @@ void LLPanelFace::onCommitFullbright(LLUICtrl* ctrl, void* userdata)
779BOOL LLPanelFace::onDragTexture(LLUICtrl*, LLInventoryItem* item, void*) 781BOOL LLPanelFace::onDragTexture(LLUICtrl*, LLInventoryItem* item, void*)
780{ 782{
781 BOOL accept = TRUE; 783 BOOL accept = TRUE;
782 LLViewerObject* obj = gSelectMgr->getFirstRootObject(); 784 LLViewerObject* obj = gSelectMgr->getSelection()->getFirstRootObject();
783 while(accept && obj) 785 while(accept && obj)
784 { 786 {
785 if(!LLToolDragAndDrop::isInventoryDropAcceptable(obj, item)) 787 if(!LLToolDragAndDrop::isInventoryDropAcceptable(obj, item))
786 accept = FALSE; 788 accept = FALSE;
787 else 789 else
788 obj = gSelectMgr->getNextRootObject(); 790 obj = gSelectMgr->getSelection()->getNextRootObject();
789 } 791 }
790 return accept; 792 return accept;
791} 793}
@@ -842,7 +844,8 @@ void LLPanelFace::onClickAutoFix(void* userdata)
842 LLViewerObject* object; 844 LLViewerObject* object;
843 845
844 // for all selected objects 846 // for all selected objects
845 for ( gSelectMgr->getFirstTE(&object, &te); object; gSelectMgr->getNextTE(&object, &te) ) 847 LLObjectSelectionHandle selection = gSelectMgr->getSelection();
848 for ( selection->getFirstTE(&object, &te); object; selection->getNextTE(&object, &te) )
846 { 849 {
847 // only do this if it's a media texture 850 // only do this if it's a media texture
848 if ( object->getTE ( te )->getID() == LLMediaEngine::getInstance()->getImageUUID () ) 851 if ( object->getTE ( te )->getID() == LLMediaEngine::getInstance()->getImageUUID () )
@@ -867,7 +870,7 @@ void LLPanelFace::onClickAutoFix(void* userdata)
867 }; 870 };
868 871
869 // not clear why this is in a separate loop but i followed the patter from further up this file just in case. 872 // not clear why this is in a separate loop but i followed the patter from further up this file just in case.
870 for ( object = gSelectMgr->getFirstObject(); object; object = gSelectMgr->getNextObject() ) 873 for ( object = gSelectMgr->getSelection()->getFirstObject(); object; object = gSelectMgr->getSelection()->getNextObject() )
871 { 874 {
872 object->sendTEUpdate(); 875 object->sendTEUpdate();
873 }; 876 };