diff options
author | Josh Bell <josh@lindenlab.com> | 2007-09-13 18:17:52 +0000 |
---|---|---|
committer | Josh Bell <josh@lindenlab.com> | 2007-09-13 18:17:52 +0000 |
commit | b3d807d5ff8dca6c891e9a5e0ddc7bc147d69f8c (patch) | |
tree | 8b94c90d06bcd0ed5d258ab1e8c5d67024683cab /indra/newview | |
parent | a5f3ac2a8dc9aee2c04f24c3b3304c1b24808acb (diff) |
svn merge -r 68690:69597 svn+ssh://svn.lindenlab.com/svn/linden/branches/Branch_1-18-3-Viewer --> release
Merge patches made in the 1-18-3 RC iterations into the trunk.
NOTE: Includes the reversion of SL-51274 (originally maintenance r67559, changed lltracker.cpp)
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/English.lproj/InfoPlist.strings | 4 | ||||
-rw-r--r-- | indra/newview/Info-SecondLife.plist | 2 | ||||
-rw-r--r-- | indra/newview/app_settings/keywords.ini | 2 | ||||
-rwxr-xr-x | indra/newview/linux_tools/wrapper.sh | 8 | ||||
-rw-r--r-- | indra/newview/llpanelgroupgeneral.cpp | 55 | ||||
-rw-r--r-- | indra/newview/llpanelgroupgeneral.h | 4 | ||||
-rw-r--r-- | indra/newview/lltracker.cpp | 51 |
7 files changed, 69 insertions, 57 deletions
diff --git a/indra/newview/English.lproj/InfoPlist.strings b/indra/newview/English.lproj/InfoPlist.strings index e3ef269a68..0b95b39824 100644 --- a/indra/newview/English.lproj/InfoPlist.strings +++ b/indra/newview/English.lproj/InfoPlist.strings @@ -1,5 +1,5 @@ /* Localized versions of Info.plist keys */ CFBundleName = "Second Life"; -CFBundleShortVersionString = "Second Life version 1.18.2.46464"; -CFBundleGetInfoString = "Second Life version 1.18.2.46464, Copyright 2004-2007 Linden Research, Inc."; +CFBundleShortVersionString = "Second Life version 1.18.3.3"; +CFBundleGetInfoString = "Second Life version 1.18.3.3, Copyright 2004-2007 Linden Research, Inc."; diff --git a/indra/newview/Info-SecondLife.plist b/indra/newview/Info-SecondLife.plist index 3c7d18078b..e1e04be477 100644 --- a/indra/newview/Info-SecondLife.plist +++ b/indra/newview/Info-SecondLife.plist @@ -32,7 +32,7 @@ </dict> </array> <key>CFBundleVersion</key> - <string>1.18.2.46464</string> + <string>1.18.3.3</string> <key>CSResourcesFileMapped</key> <true/> </dict> diff --git a/indra/newview/app_settings/keywords.ini b/indra/newview/app_settings/keywords.ini index 4496ee746f..5a68c5b163 100644 --- a/indra/newview/app_settings/keywords.ini +++ b/indra/newview/app_settings/keywords.ini @@ -149,7 +149,7 @@ PSYS_SRC_PATTERN_ANGLE PSYS_SRC_PATTERN_ANGLE_CONE PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY -OBJECT_UNKOWN_DETAIL Returned by llGetObjectDetails when passed an invalid object parameter type. +OBJECT_UNKNOWN_DETAIL Returned by llGetObjectDetails when passed an invalid object parameter type. OBJECT_NAME Used with llGetObjectDetails to get an object's name. OBJECT_DESC Used with llGetObjectDetails to get an object's description. OBJECT_POS Used with llGetObjectDetails to get an object's position. diff --git a/indra/newview/linux_tools/wrapper.sh b/indra/newview/linux_tools/wrapper.sh index 2a57b66883..fd15f215c4 100755 --- a/indra/newview/linux_tools/wrapper.sh +++ b/indra/newview/linux_tools/wrapper.sh @@ -38,6 +38,7 @@ export LL_GL_BASICEXT=x ## you're building your own viewer, bear in mind that the executable ## in the bin directory will be stripped: you should replace it with ## an unstripped binary before you run. +#export LL_WRAPPER='gdb --args' #export LL_WRAPPER='valgrind --smc-check=all --log-file=secondlife.vg --leak-check=full --suppressions=/usr/lib/valgrind/glibc-2.5.supp --suppressions=secondlife-i686.supp' ## - Avoids an often-buggy X feature that doesn't really benefit us anyway. @@ -68,7 +69,12 @@ if [ -n "$LL_TCMALLOC" ]; then fi fi fi -LD_LIBRARY_PATH="`pwd`"/lib:"`pwd`"/app_settings/mozilla-runtime-linux-i686:"${LD_LIBRARY_PATH}" $LL_WRAPPER bin/do-not-directly-run-secondlife-bin `cat gridargs.dat` $@ | cat + +export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib:"`pwd`"/app_settings/mozilla-runtime-linux-i686:"${LD_LIBRARY_PATH}"' +export SL_CMD='$LL_WRAPPER bin/do-not-directly-run-secondlife-bin' +export SL_OPT="`cat gridargs.dat` $@" + +eval ${SL_ENV} ${SL_CMD} ${SL_OPT} || echo Unclean shutdown. echo echo '*********************************************************' diff --git a/indra/newview/llpanelgroupgeneral.cpp b/indra/newview/llpanelgroupgeneral.cpp index 944251ac07..9139b01e0f 100644 --- a/indra/newview/llpanelgroupgeneral.cpp +++ b/indra/newview/llpanelgroupgeneral.cpp @@ -160,6 +160,7 @@ BOOL LLPanelGroupGeneral::postBuild() { mSpinEnrollmentFee->setCommitCallback(onCommitAny); mSpinEnrollmentFee->setCallbackUserData(this); + mSpinEnrollmentFee->setPrecision(0); } BOOL accept_notices = FALSE; @@ -473,6 +474,8 @@ bool LLPanelGroupGeneral::apply(LLString& mesg) { gdatap->mMembershipFee = (mCtrlEnrollmentFee->get()) ? (S32) mSpinEnrollmentFee->get() : 0; + // Set to the used value, and reset initial value used for isdirty check + mSpinEnrollmentFee->set( (F32)gdatap->mMembershipFee ); } } @@ -494,6 +497,8 @@ bool LLPanelGroupGeneral::apply(LLString& mesg) mChanged = FALSE; notifyObservers(); + notifyObservers(); + return true; } @@ -792,28 +797,32 @@ void LLPanelGroupGeneral::updateMembers() void LLPanelGroupGeneral::updateChanged() { + // List all the controls we want to check for changes... + LLUICtrl *check_list[] = + { + mGroupNameEditor, + mGroupName, + mFounderName, + mInsignia, + mEditCharter, + mCtrlShowInGroupList, + mCtrlMature, + mCtrlOpenEnrollment, + mCtrlEnrollmentFee, + mSpinEnrollmentFee, + mCtrlReceiveNotices, + mCtrlListGroup, + mComboActiveTitle + }; + mChanged = FALSE; - if ( mGroupNameEditor ) - mChanged = mGroupNameEditor->isDirty(); - if ( mGroupName ) - mChanged |= mGroupName->isDirty(); - if ( mFounderName ) - mChanged |= mFounderName->isDirty(); - if ( mInsignia ) - mChanged |= mInsignia->isDirty(); - if ( mEditCharter ) - mChanged |= mEditCharter->isDirty(); - if ( mCtrlShowInGroupList) - mChanged |= mCtrlShowInGroupList->isDirty(); - if ( mCtrlMature) - mChanged |= mCtrlMature->isDirty(); - if ( mCtrlOpenEnrollment) - mChanged |= mCtrlOpenEnrollment->isDirty(); - if ( mCtrlEnrollmentFee) - mChanged |= mCtrlEnrollmentFee->isDirty(); - if ( mSpinEnrollmentFee) - mChanged |= mSpinEnrollmentFee->isDirty(); -// if ( mCtrlReceiveNotices ) // "Receive group notices" is different, see onReceiveNotices() -// mChanged |= mCtrlReceiveNotices->isDirty(); -} + for( int i= 0; i< sizeof(check_list)/sizeof(*check_list); i++ ) + { + if( check_list[i] && check_list[i]->isDirty() ) + { + mChanged = TRUE; + break; + } + } +} diff --git a/indra/newview/llpanelgroupgeneral.h b/indra/newview/llpanelgroupgeneral.h index a8f10b04ef..29a913d198 100644 --- a/indra/newview/llpanelgroupgeneral.h +++ b/indra/newview/llpanelgroupgeneral.h @@ -64,7 +64,7 @@ private: std::string mConfirmGroupCreateStr; LLUUID mDefaultIconID; - // Group information + // Group information (include any updates in updateChanged) LLLineEditor *mGroupNameEditor; LLTextBox *mGroupName; LLNameBox *mFounderName; @@ -75,7 +75,7 @@ private: LLNameListCtrl *mListVisibleMembers; - // Options + // Options (include any updates in updateChanged) LLCheckBoxCtrl *mCtrlShowInGroupList; LLCheckBoxCtrl *mCtrlMature; LLCheckBoxCtrl *mCtrlOpenEnrollment; diff --git a/indra/newview/lltracker.cpp b/indra/newview/lltracker.cpp index 4166cc16fe..42ef25ac4e 100644 --- a/indra/newview/lltracker.cpp +++ b/indra/newview/lltracker.cpp @@ -87,6 +87,15 @@ void LLTracker::stopTracking(void* userdata) // static virtual void LLTracker::drawHUDArrow() { + /* tracking autopilot destination has been disabled + -- 2004.01.09, Leviathan + // Draw dot for autopilot target + if (gAgent.getAutoPilot()) + { + instance()->drawMarker( gAgent.getAutoPilotTargetGlobal(), gTrackColor ); + return; + } + */ switch (getTrackingStatus()) { case TRACKING_AVATAR: @@ -450,6 +459,7 @@ void LLTracker::renderBeacon(LLVector3d pos_global, if (dist > 0.99f * gCamera->getFar()) { color_frac = 0.4f; + // pos_global = gAgent.getCameraPositionGlobal() + 0.99f*(gCamera->getFar()/dist)*to_vec; } else { @@ -474,6 +484,7 @@ void LLTracker::renderBeacon(LLVector3d pos_global, draw_shockwave(1024.f, gRenderStartTime.getElapsedTimeF32(), 32, fogged_color); + //glScalef(1.f, 1.f, 1000.f); glColor4fv(fogged_color.mV); const U32 BEACON_VERTS = 256; const F32 step = 1024.0f/BEACON_VERTS; @@ -523,30 +534,24 @@ void LLTracker::renderBeacon(LLVector3d pos_global, glEnd(); } + //gCylinder.render(1000); glPopMatrix(); - if (!gCamera || to_vec.magVec() > gCamera->getFar()) - { - hud_textp->clearString(); - } - else - { - char text[1024]; /* Flawfinder: ignore */ - snprintf(text, sizeof(text), "%.0f m", to_vec.magVec()); /* Flawfinder: ignore */ + char text[1024]; /* Flawfinder: ignore */ + snprintf(text, sizeof(text), "%.0f m", to_vec.magVec()); /* Flawfinder: ignore */ - LLWString wstr; - wstr += utf8str_to_wstring(label); - wstr += '\n'; - wstr += utf8str_to_wstring(text); + LLWString wstr; + wstr += utf8str_to_wstring(label); + wstr += '\n'; + wstr += utf8str_to_wstring(text); - hud_textp->setFont(LLFontGL::sSansSerif); - hud_textp->setZCompare(FALSE); - hud_textp->setColor(LLColor4(1.f, 1.f, 1.f, llmax(0.2f, llmin(1.f,(dist-FADE_DIST)/FADE_DIST)))); + hud_textp->setFont(LLFontGL::sSansSerif); + hud_textp->setZCompare(FALSE); + hud_textp->setColor(LLColor4(1.f, 1.f, 1.f, llmax(0.2f, llmin(1.f,(dist-FADE_DIST)/FADE_DIST)))); - hud_textp->setString(wstr); - hud_textp->setVertAlignment(LLHUDText::ALIGN_VERT_CENTER); - hud_textp->setPositionAgent(pos_agent); - } + hud_textp->setString(wstr); + hud_textp->setVertAlignment(LLHUDText::ALIGN_VERT_CENTER); + hud_textp->setPositionAgent(pos_agent); } @@ -618,14 +623,6 @@ void LLTracker::drawMarker(const LLVector3d& pos_global, const LLColor4& color) return; } - LLVector3d to_vec = pos_global - gAgent.getCameraPositionGlobal(); - to_vec.mdV[2] = 0; - - if (to_vec.magVec() > gCamera->getFar()) - { //only draw arrow if lateral distance to object is less than view distance. - return; - } - // get position LLVector3 pos_local = gAgent.getPosAgentFromGlobal(pos_global); |