diff options
42 files changed, 441 insertions, 264 deletions
| diff --git a/indra/llui/llmultisliderctrl.cpp b/indra/llui/llmultisliderctrl.cpp index cb81c39103..50942e55ca 100644 --- a/indra/llui/llmultisliderctrl.cpp +++ b/indra/llui/llmultisliderctrl.cpp @@ -331,6 +331,10 @@ void LLMultiSliderCtrl::updateText()  void LLMultiSliderCtrl::onEditorCommit( LLUICtrl* ctrl, const LLSD& userdata)  {  	LLMultiSliderCtrl* self = dynamic_cast<LLMultiSliderCtrl*>(ctrl->getParent()); +	llassert(self); +	if (!self) // cast failed - wrong type! :O +		return; +  	if (!ctrl)  		return; diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 48205370ef..d0c2f3cb34 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -8456,6 +8456,17 @@        <key>Value</key>        <integer>0</integer>      </map> +    <key>ShowVoiceVisualizersInCalls</key> +    <map> +      <key>Comment</key> +      <string>Enables in-world voice visualizers, voice gestures and lip-sync while in group or P2P calls.</string> +      <key>Persist</key> +      <integer>1</integer> +      <key>Type</key> +      <string>Boolean</string> +      <key>Value</key> +      <integer>0</integer> +    </map>      <key>ShowVolumeSettingsPopup</key>      <map>        <key>Comment</key> diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp index 6620780b27..a439720dcf 100644 --- a/indra/newview/llagentwearables.cpp +++ b/indra/newview/llagentwearables.cpp @@ -299,6 +299,10 @@ void LLAgentWearables::addWearableToAgentInventoryCallback::fire(const LLUUID& i  	{  		gAgentWearables.makeNewOutfitDone(mType, mIndex);  	} +	if (mTodo & CALL_WEARITEM) +	{ +		LLAppearanceManager::instance().addCOFItemLink(inv_item, true); +	}  }  void LLAgentWearables::addWearabletoAgentInventoryDone(const S32 type, @@ -510,7 +514,7 @@ void LLAgentWearables::saveWearableAs(const EWearableType type,  			type,  			index,  			new_wearable, -			addWearableToAgentInventoryCallback::CALL_UPDATE); +			addWearableToAgentInventoryCallback::CALL_WEARITEM);  	LLUUID category_id;  	if (save_in_lost_and_found)  	{ @@ -1290,25 +1294,29 @@ void LLAgentWearables::makeNewOutfit(const std::string& new_folder_name,  							j,  							new_wearable,  							todo); -					if (isWearableCopyable((EWearableType)type, j)) -					{ -						copy_inventory_item( -							gAgent.getID(), -							item->getPermissions().getOwner(), -							item->getUUID(), -							folder_id, -							new_name, -							cb); -					} -					else +					llassert(item); +					if (item)  					{ -						move_inventory_item( -							gAgent.getID(), -							gAgent.getSessionID(), -							item->getUUID(), -							folder_id, -							new_name, -							cb); +						if (isWearableCopyable((EWearableType)type, j)) +						{ +							copy_inventory_item( +									    gAgent.getID(), +									    item->getPermissions().getOwner(), +									    item->getUUID(), +									    folder_id, +									    new_name, +									    cb); +						} +						else +						{ +							move_inventory_item( +									    gAgent.getID(), +									    gAgent.getSessionID(), +									    item->getUUID(), +									    folder_id, +									    new_name, +									    cb); +						}  					}  				}  			} diff --git a/indra/newview/llagentwearables.h b/indra/newview/llagentwearables.h index b4f58674af..858540a5f5 100644 --- a/indra/newview/llagentwearables.h +++ b/indra/newview/llagentwearables.h @@ -244,7 +244,8 @@ private:  			CALL_UPDATE = 1,  			CALL_RECOVERDONE = 2,  			CALL_CREATESTANDARDDONE = 4, -			CALL_MAKENEWOUTFITDONE = 8 +			CALL_MAKENEWOUTFITDONE = 8, +			CALL_WEARITEM = 16  		};  		// MULTI-WEARABLE: index is an EWearableType - more confusing usage. diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index 0cceba6cb0..018e9a92a0 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -666,6 +666,11 @@ void LLAppearanceManager::filterWearableItems(  		if (!item->isWearableType())  			continue;  		EWearableType type = item->getWearableType(); +		if(type < 0 || type >= WT_COUNT) +		{ +			LL_WARNS("Appearance") << "Invalid wearable type. Inventory type does not match wearable flag bitfield." << LL_ENDL; +			continue; +		}  		items_by_type[type].push_back(item);  	} diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index c0a3eb1316..80acc71a41 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -182,6 +182,7 @@ void LLFace::init(LLDrawable* drawablep, LLViewerObject* objp)  	mAtlasInfop = NULL ;  	mUsingAtlas  = FALSE ; +	mHasMedia = FALSE ;  } @@ -1348,11 +1349,12 @@ const F32 LEAST_IMPORTANCE_FOR_LARGE_IMAGE = 0.3f ;  F32 LLFace::getTextureVirtualSize()  {  	F32 radius; -	F32 cos_angle_to_view_dir; -	mPixelArea = calcPixelArea(cos_angle_to_view_dir, radius); +	F32 cos_angle_to_view_dir;	 +	BOOL in_frustum = calcPixelArea(cos_angle_to_view_dir, radius); -	if (mPixelArea < 0.0001f) +	if (mPixelArea < 0.0001f || !in_frustum)  	{ +		setVirtualSize(0.f) ;  		return 0.f;  	} @@ -1389,30 +1391,36 @@ F32 LLFace::getTextureVirtualSize()  		}  	} +	setVirtualSize(face_area) ; +  	return face_area;  } -F32 LLFace::calcPixelArea(F32& cos_angle_to_view_dir, F32& radius) +BOOL LLFace::calcPixelArea(F32& cos_angle_to_view_dir, F32& radius)  {  	//get area of circle around face  	LLVector3 center = getPositionAgent();  	LLVector3 size = (mExtents[1] - mExtents[0]) * 0.5f;	  	LLViewerCamera* camera = LLViewerCamera::getInstance(); -	//if has media, check if the face is out of the view frustum. -	BOOL has_media = hasMedia() ; -	if(has_media && !camera->AABBInFrustum(center, size))  -	{ -		mImportanceToCamera = 0.f ; -		return 0.f ; -	} -  	F32 size_squared = size.lengthSquared() ;  	LLVector3 lookAt = center - camera->getOrigin(); -	F32 dist = lookAt.normVec() ; -	cos_angle_to_view_dir = lookAt * camera->getXAxis() ;	 -	if(has_media) +	F32 dist = lookAt.normVec() ;	 + +	//get area of circle around node +	F32 app_angle = atanf(fsqrtf(size_squared) / dist); +	radius = app_angle*LLDrawable::sCurPixelAngle; +	mPixelArea = radius*radius * 3.14159f; +	cos_angle_to_view_dir = lookAt * camera->getXAxis() ; + +	//if has media, check if the face is out of the view frustum.	 +	if(hasMedia())  	{ +		if(!camera->AABBInFrustum(center, size))  +		{ +			mImportanceToCamera = 0.f ; +			return false ; +		}  		if(cos_angle_to_view_dir > camera->getCosHalfFov()) //the center is within the view frustum  		{  			cos_angle_to_view_dir = 1.0f ; @@ -1426,11 +1434,6 @@ F32 LLFace::calcPixelArea(F32& cos_angle_to_view_dir, F32& radius)  		}  	} -	//get area of circle around node -	F32 app_angle = atanf(fsqrtf(size_squared) / dist); -	radius = app_angle*LLDrawable::sCurPixelAngle; -	F32 face_area = radius*radius * 3.14159f; -  	if(dist < mBoundingSphereRadius) //camera is very close  	{  		cos_angle_to_view_dir = 1.0f ; @@ -1441,7 +1444,7 @@ F32 LLFace::calcPixelArea(F32& cos_angle_to_view_dir, F32& radius)  		mImportanceToCamera = LLFace::calcImportanceToCamera(cos_angle_to_view_dir, dist) ;  	} -	return face_area ; +	return true ;  }  //the projection of the face partially overlaps with the screen diff --git a/indra/newview/llface.h b/indra/newview/llface.h index bf658dc00c..67dd97e6f7 100644 --- a/indra/newview/llface.h +++ b/indra/newview/llface.h @@ -211,7 +211,7 @@ public:  private:	  	F32         adjustPartialOverlapPixelArea(F32 cos_angle_to_view_dir, F32 radius ); -	F32         calcPixelArea(F32& cos_angle_to_view_dir, F32& radius) ; +	BOOL        calcPixelArea(F32& cos_angle_to_view_dir, F32& radius) ;  public:  	static F32  calcImportanceToCamera(F32 to_view_dir, F32 dist); diff --git a/indra/newview/llfavoritesbar.cpp b/indra/newview/llfavoritesbar.cpp index 1e8a739d78..bf7c735488 100644 --- a/indra/newview/llfavoritesbar.cpp +++ b/indra/newview/llfavoritesbar.cpp @@ -1264,8 +1264,11 @@ LLInventoryModel::item_array_t::iterator LLFavoritesBarCtrl::findItemByUUID(LLIn  void LLFavoritesBarCtrl::insertBeforeItem(LLInventoryModel::item_array_t& items, const LLUUID& beforeItemId, LLViewerInventoryItem* insertedItem)  {  	LLViewerInventoryItem* beforeItem = gInventory.getItem(beforeItemId); - -	items.insert(findItemByUUID(items, beforeItem->getUUID()), insertedItem); +	llassert(beforeItem); +	if (beforeItem) +	{ +		items.insert(findItemByUUID(items, beforeItem->getUUID()), insertedItem); +	}  }  // EOF diff --git a/indra/newview/llfeaturemanager.cpp b/indra/newview/llfeaturemanager.cpp index fb724f30e0..fbb90c69f3 100644 --- a/indra/newview/llfeaturemanager.cpp +++ b/indra/newview/llfeaturemanager.cpp @@ -287,6 +287,7 @@ BOOL LLFeatureManager::loadFeatureTables()  			if (!flp)  			{  				LL_ERRS("RenderInit") << "Specified parameter before <list> keyword!" << LL_ENDL; +				return FALSE;  			}  			S32 available;  			F32 recommended; diff --git a/indra/newview/llfloatergesture.cpp b/indra/newview/llfloatergesture.cpp index b684e1f985..90617a337a 100644 --- a/indra/newview/llfloatergesture.cpp +++ b/indra/newview/llfloatergesture.cpp @@ -427,8 +427,13 @@ void LLFloaterGesture::onClickPlay()  		BOOL inform_server = TRUE;  		BOOL deactivate_similar = FALSE;  		LLGestureManager::instance().setGestureLoadedCallback(item_id, boost::bind(&LLFloaterGesture::playGesture, this, item_id)); -		LLGestureManager::instance().activateGestureWithAsset(item_id, gInventory.getItem(item_id)->getAssetUUID(), inform_server, deactivate_similar); -		LL_DEBUGS("Gesture")<< "Activating gesture with inventory ID: " << item_id <<LL_ENDL; +		LLViewerInventoryItem *item = gInventory.getItem(item_id); +		llassert(item); +		if (item) +		{ +			LLGestureManager::instance().activateGestureWithAsset(item_id, item->getAssetUUID(), inform_server, deactivate_similar); +			LL_DEBUGS("Gesture")<< "Activating gesture with inventory ID: " << item_id <<LL_ENDL; +		}  	}  	else  	{ @@ -510,15 +515,16 @@ void LLFloaterGesture::onCopyPasteAction(const LLSD& command)  		if(ids.empty() || !gInventory.isCategoryComplete(mGestureFolderID))  			return;  		LLInventoryCategory* gesture_dir = gInventory.getCategory(mGestureFolderID); +		llassert(gesture_dir);  		LLPointer<GestureCopiedCallback> cb = new GestureCopiedCallback(this);  		for(LLDynamicArray<LLUUID>::iterator it = ids.begin(); it != ids.end(); it++)  		{  			LLInventoryItem* item = gInventory.getItem(*it); -			LLStringUtil::format_map_t string_args; -			string_args["[COPY_NAME]"] = item->getName(); -			if(item && item->getInventoryType() == LLInventoryType::IT_GESTURE) +			if(gesture_dir && item && item->getInventoryType() == LLInventoryType::IT_GESTURE)  			{ +				LLStringUtil::format_map_t string_args; +				string_args["[COPY_NAME]"] = item->getName();  				LL_DEBUGS("Gesture")<< "Copying gesture " << item->getName() << "  "<< item->getUUID() << " into "  										<< gesture_dir->getName() << "  "<< gesture_dir->getUUID() << LL_ENDL;  				copy_inventory_item(gAgent.getID(), item->getPermissions().getOwner(), item->getUUID(),  diff --git a/indra/newview/llfloaternotificationsconsole.cpp b/indra/newview/llfloaternotificationsconsole.cpp index 90db8988b2..94b5ebba00 100644 --- a/indra/newview/llfloaternotificationsconsole.cpp +++ b/indra/newview/llfloaternotificationsconsole.cpp @@ -112,10 +112,15 @@ void LLNotificationChannelPanel::onClickNotification(void* user_data)  {  	LLNotificationChannelPanel* self = (LLNotificationChannelPanel*)user_data;  	if (!self) return; -	void* data = self->getChild<LLScrollListCtrl>("notifications_list")->getFirstSelected()->getUserdata(); -	if (data) +	LLScrollListItem* firstselected = self->getChild<LLScrollListCtrl>("notifications_list")->getFirstSelected(); +	llassert(firstselected); +	if (firstselected)  	{ -		gFloaterView->getParentFloater(self)->addDependentFloater(new LLFloaterNotification((LLNotification*)data), TRUE); +		void* data = firstselected->getUserdata(); +		if (data) +		{ +			gFloaterView->getParentFloater(self)->addDependentFloater(new LLFloaterNotification((LLNotification*)data), TRUE); +		}  	}  } @@ -124,10 +129,15 @@ void LLNotificationChannelPanel::onClickNotificationReject(void* user_data)  {  	LLNotificationChannelPanel* self = (LLNotificationChannelPanel*)user_data;  	if (!self) return; -	void* data = self->getChild<LLScrollListCtrl>("notification_rejects_list")->getFirstSelected()->getUserdata(); -	if (data) +	LLScrollListItem* firstselected = self->getChild<LLScrollListCtrl>("notification_rejects_list")->getFirstSelected(); +	llassert(firstselected); +	if (firstselected)  	{ -		gFloaterView->getParentFloater(self)->addDependentFloater(new LLFloaterNotification((LLNotification*)data), TRUE); +		void* data = firstselected->getUserdata(); +		if (data) +		{ +			gFloaterView->getParentFloater(self)->addDependentFloater(new LLFloaterNotification((LLNotification*)data), TRUE); +		}  	}  } diff --git a/indra/newview/llfloaterproperties.cpp b/indra/newview/llfloaterproperties.cpp index bde86a4034..5c0593ad29 100644 --- a/indra/newview/llfloaterproperties.cpp +++ b/indra/newview/llfloaterproperties.cpp @@ -880,7 +880,11 @@ void LLFloaterProperties::dirtyAll()  		 iter != inst_list.end(); ++iter)  	{  		LLFloaterProperties* floater = dynamic_cast<LLFloaterProperties*>(*iter); -		floater->dirty(); +		llassert(floater); // else cast failed - wrong type D: +		if (floater) +		{ +			floater->dirty(); +		}  	}  } diff --git a/indra/newview/llfloatertools.cpp b/indra/newview/llfloatertools.cpp index 4edd09b02c..e2b083a29b 100644 --- a/indra/newview/llfloatertools.cpp +++ b/indra/newview/llfloatertools.cpp @@ -666,8 +666,8 @@ void LLFloaterTools::updatePopup(LLCoordGL center, MASK mask)  	if (mCheckCopyCenters) mCheckCopyCenters	->setVisible( create_visible );  	if (mCheckCopyRotates) mCheckCopyRotates	->setVisible( create_visible ); -	if (mCheckCopyCenters) mCheckCopyCenters->setEnabled( mCheckCopySelection->get() ); -	if (mCheckCopyRotates) mCheckCopyRotates->setEnabled( mCheckCopySelection->get() ); +	if (mCheckCopyCenters && mCheckCopySelection) mCheckCopyCenters->setEnabled( mCheckCopySelection->get() ); +	if (mCheckCopyRotates && mCheckCopySelection) mCheckCopyRotates->setEnabled( mCheckCopySelection->get() );  	// Land buttons  	BOOL land_visible = (tool == LLToolBrushLand::getInstance() || tool == LLToolSelectLand::getInstance() ); diff --git a/indra/newview/llfloateruipreview.cpp b/indra/newview/llfloateruipreview.cpp index 3e804bef9d..f61c86db14 100644 --- a/indra/newview/llfloateruipreview.cpp +++ b/indra/newview/llfloateruipreview.cpp @@ -362,8 +362,7 @@ BOOL LLFadeEventTimer::tick()  	if(NULL == mParent)	// no more need to tick, so suicide  	{ -		delete this; -		return FALSE; +		return TRUE;  	}  	// Set up colors diff --git a/indra/newview/llfolderview.cpp b/indra/newview/llfolderview.cpp index 57c7ba8e27..8dbdfff635 100644 --- a/indra/newview/llfolderview.cpp +++ b/indra/newview/llfolderview.cpp @@ -195,7 +195,8 @@ LLFolderView::LLFolderView(const Params& p)  	mCallbackRegistrar(NULL),  	mParentPanel(p.parent_panel),  	mUseEllipses(false), -	mDraggingOverItem(NULL) +	mDraggingOverItem(NULL), +	mStatusTextBox(NULL)  {  	LLRect rect = p.rect;  	LLRect new_rect(rect.mLeft, rect.mBottom + getRect().getHeight(), rect.mLeft + getRect().getWidth(), rect.mBottom); @@ -231,6 +232,18 @@ LLFolderView::LLFolderView(const Params& p)  	mRenamer = LLUICtrlFactory::create<LLLineEditor> (params);  	addChild(mRenamer); +	// Textbox +	LLTextBox::Params text_p; +	LLRect new_r(5, 13-50, 300, 0-50); +	text_p.name(std::string(p.name)); +	text_p.rect(new_r); +	text_p.font(getLabelFontForStyle(mLabelStyle)); +	text_p.visible(false); +	text_p.allow_html(true); +	mStatusTextBox = LLUICtrlFactory::create<LLTextBox> (text_p); +	//addChild(mStatusTextBox); + +  	// make the popup menu available  	LLMenuGL* menu = LLUICtrlFactory::getInstance()->createFromFile<LLMenuGL>("menu_inventory.xml", gMenuHolder, LLViewerMenuHolderGL::child_registry_t::instance());  	if (!menu) @@ -253,6 +266,7 @@ LLFolderView::~LLFolderView( void )  	mScrollContainer = NULL;  	mRenameItem = NULL;  	mRenamer = NULL; +	mStatusTextBox = NULL;  	if( gEditMenuHandler == this )  	{ @@ -874,7 +888,7 @@ void LLFolderView::draw()  			LLFontGL::LEFT, LLFontGL::BOTTOM, LLFontGL::NORMAL, LLFontGL::NO_SHADOW, S32_MAX, S32_MAX, NULL, FALSE );  	} -	LLFontGL* font = getLabelFontForStyle(mLabelStyle); +	//LLFontGL* font = getLabelFontForStyle(mLabelStyle);  	// if cursor has moved off of me during drag and drop  	// close all auto opened folders @@ -911,19 +925,23 @@ void LLFolderView::draw()  		|| mFilter->getShowFolderState() == LLInventoryFilter::SHOW_ALL_FOLDERS)  	{  		mStatusText.clear(); +		mStatusTextBox->setVisible( FALSE );  	}  	else  	{  		if (gInventory.backgroundFetchActive() || mCompletedFilterGeneration < mFilter->getMinRequiredGeneration())  		{  			mStatusText = LLTrans::getString("Searching"); -			font->renderUTF8(mStatusText, 0, 2, 1, sSearchStatusColor, LLFontGL::LEFT, LLFontGL::TOP, LLFontGL::NORMAL,  LLFontGL::NO_SHADOW, S32_MAX, S32_MAX, NULL, FALSE ); +			//font->renderUTF8(mStatusText, 0, 2, 1, sSearchStatusColor, LLFontGL::LEFT, LLFontGL::TOP, LLFontGL::NORMAL,  LLFontGL::NO_SHADOW, S32_MAX, S32_MAX, NULL, FALSE );  		}  		else  		{  			mStatusText = LLTrans::getString(getFilter()->getEmptyLookupMessage()); -			font->renderUTF8(mStatusText, 0, 2, 1, sSearchStatusColor, LLFontGL::LEFT, LLFontGL::TOP, LLFontGL::NORMAL,  LLFontGL::NO_SHADOW, S32_MAX, S32_MAX, NULL, FALSE ); +			//font->renderUTF8(mStatusText, 0, 2, 1, sSearchStatusColor, LLFontGL::LEFT, LLFontGL::TOP, LLFontGL::NORMAL,  LLFontGL::NO_SHADOW, S32_MAX, S32_MAX, NULL, FALSE );  		} +		mStatusTextBox->setValue(mStatusText); +		mStatusTextBox->setVisible( TRUE ); +		  	}  	LLFolderViewFolder::draw(); diff --git a/indra/newview/llfolderview.h b/indra/newview/llfolderview.h index 56ebdfcf79..faf6a9cf23 100644 --- a/indra/newview/llfolderview.h +++ b/indra/newview/llfolderview.h @@ -62,6 +62,7 @@ class LLLineEditor;  class LLMenuGL;  class LLScrollContainer;  class LLUICtrl; +class LLTextBox;  //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  // Class LLFolderViewFunctor @@ -327,7 +328,7 @@ protected:  	LLUUID							mSelectThisID; // if non null, select this item -	LLPanel*				mParentPanel; +	LLPanel*						mParentPanel;  	/**  	 * Is used to determine if we need to cut text In LLFolderViewItem to avoid horizontal scroll. @@ -344,6 +345,8 @@ protected:  public:  	static F32 sAutoOpenTime; +	LLTextBox*						mStatusTextBox; +  };  bool sort_item_name(LLFolderViewItem* a, LLFolderViewItem* b); diff --git a/indra/newview/llgroupmgr.cpp b/indra/newview/llgroupmgr.cpp index e65990a095..4db75bbd8a 100644 --- a/indra/newview/llgroupmgr.cpp +++ b/indra/newview/llgroupmgr.cpp @@ -677,9 +677,12 @@ void LLGroupMgrGroupData::sendRoleChanges()  				break;  			}  			case RC_UPDATE_ALL: +				// fall through  			case RC_UPDATE_POWERS:  				need_power_recalc = true; +				// fall through  			case RC_UPDATE_DATA: +				// fall through  			default:   			{  				LLGroupRoleData* group_role_data = (*role_it).second; diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index 33623539e9..3553137f53 100644 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -195,6 +195,62 @@ void LLOpenFoldersWithSelection::doFolder(LLFolderViewFolder* folder)  	}  } +static void assign_clothing_bodypart_icon(EInventoryIcon &idx, U32 attachment_point) +{ +	const EWearableType wearable_type = EWearableType(LLInventoryItem::II_FLAGS_WEARABLES_MASK & attachment_point); +	switch(wearable_type) +	{ +		case WT_SHAPE: +			idx = BODYPART_SHAPE_ICON_NAME; +			break; +		case WT_SKIN: +			idx = BODYPART_SKIN_ICON_NAME; +			break; +		case WT_HAIR: +			idx = BODYPART_HAIR_ICON_NAME; +			break; +		case WT_EYES: +			idx = BODYPART_EYES_ICON_NAME; +			break; +		case WT_SHIRT: +			idx = CLOTHING_SHIRT_ICON_NAME; +			break; +		case WT_PANTS: +			idx = CLOTHING_PANTS_ICON_NAME; +			break; +		case WT_SHOES: +			idx = CLOTHING_SHOES_ICON_NAME; +			break; +		case WT_SOCKS: +			idx = CLOTHING_SOCKS_ICON_NAME; +			break; +		case WT_JACKET: +			idx = CLOTHING_JACKET_ICON_NAME; +			break; +		case WT_GLOVES: +			idx = CLOTHING_GLOVES_ICON_NAME; +			break; +		case WT_UNDERSHIRT: +			idx = CLOTHING_UNDERSHIRT_ICON_NAME; +			break; +		case WT_UNDERPANTS: +			idx = CLOTHING_UNDERPANTS_ICON_NAME; +			break; +		case WT_SKIRT: +			idx = CLOTHING_SKIRT_ICON_NAME; +			break; +		case WT_ALPHA: +			idx = CLOTHING_ALPHA_ICON_NAME; +			break; +		case WT_TATTOO: +			idx = CLOTHING_TATTOO_ICON_NAME; +			break; +		default: +			break; +	} +} +										   +  const std::string& get_item_icon_name(LLAssetType::EType asset_type,  							 LLInventoryType::EType inventory_type,  							 U32 attachment_point, @@ -249,62 +305,11 @@ const std::string& get_item_icon_name(LLAssetType::EType asset_type,  		break;  	case LLAssetType::AT_CLOTHING:  		idx = CLOTHING_ICON_NAME; -	case LLAssetType::AT_BODYPART : -		if(LLAssetType::AT_BODYPART == asset_type) -		{ -			idx = BODYPART_ICON_NAME; -		} -		switch(LLInventoryItem::II_FLAGS_WEARABLES_MASK & attachment_point) -		{ -		case WT_SHAPE: -			idx = BODYPART_SHAPE_ICON_NAME; -			break; -		case WT_SKIN: -			idx = BODYPART_SKIN_ICON_NAME; -			break; -		case WT_HAIR: -			idx = BODYPART_HAIR_ICON_NAME; -			break; -		case WT_EYES: -			idx = BODYPART_EYES_ICON_NAME; -			break; -		case WT_SHIRT: -			idx = CLOTHING_SHIRT_ICON_NAME; -			break; -		case WT_PANTS: -			idx = CLOTHING_PANTS_ICON_NAME; -			break; -		case WT_SHOES: -			idx = CLOTHING_SHOES_ICON_NAME; -			break; -		case WT_SOCKS: -			idx = CLOTHING_SOCKS_ICON_NAME; -			break; -		case WT_JACKET: -			idx = CLOTHING_JACKET_ICON_NAME; -			break; -		case WT_GLOVES: -			idx = CLOTHING_GLOVES_ICON_NAME; -			break; -		case WT_UNDERSHIRT: -			idx = CLOTHING_UNDERSHIRT_ICON_NAME; -			break; -		case WT_UNDERPANTS: -			idx = CLOTHING_UNDERPANTS_ICON_NAME; -			break; -		case WT_SKIRT: -			idx = CLOTHING_SKIRT_ICON_NAME; -			break; -		case WT_ALPHA: -			idx = CLOTHING_ALPHA_ICON_NAME; -			break; -		case WT_TATTOO: -			idx = CLOTHING_TATTOO_ICON_NAME; -			break; -		default: -			// no-op, go with choice above -			break; -		} +		assign_clothing_bodypart_icon(idx, attachment_point); +		break; +	case LLAssetType::AT_BODYPART: +		idx = BODYPART_ICON_NAME; +		assign_clothing_bodypart_icon(idx, attachment_point);  		break;  	case LLAssetType::AT_NOTECARD:  		idx = NOTECARD_ICON_NAME; diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp index 467255d1a7..ca9b942629 100644 --- a/indra/newview/llinventorypanel.cpp +++ b/indra/newview/llinventorypanel.cpp @@ -143,6 +143,7 @@ BOOL LLInventoryPanel::postBuild()  		addChild(mScroller);  		mScroller->addChild(mFolders);  		mFolders->setScrollContainer(mScroller); +		mFolders->addChild(mFolders->mStatusTextBox);  	}  	// Set up the callbacks from the inventory we're viewing, and then build everything. diff --git a/indra/newview/llpanellandmarkinfo.cpp b/indra/newview/llpanellandmarkinfo.cpp index 36a542cfa0..cd6c727b5c 100644 --- a/indra/newview/llpanellandmarkinfo.cpp +++ b/indra/newview/llpanellandmarkinfo.cpp @@ -406,21 +406,24 @@ void LLPanelLandmarkInfo::populateFoldersList()  	// Put the "Landmarks" folder first in list.  	LLUUID landmarks_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_LANDMARK); -	const LLViewerInventoryCategory* cat = gInventory.getCategory(landmarks_id); -	if (!cat) +	const LLViewerInventoryCategory* lmcat = gInventory.getCategory(landmarks_id); +	if (!lmcat)  	{  		llwarns << "Cannot find the landmarks folder" << llendl;  	} -	std::string cat_full_name = getFullFolderName(cat); -	mFolderCombo->add(cat_full_name, cat->getUUID()); +	else +	{ +		std::string cat_full_name = getFullFolderName(lmcat); +		mFolderCombo->add(cat_full_name, lmcat->getUUID()); +	}  	typedef std::vector<folder_pair_t> folder_vec_t;  	folder_vec_t folders;  	// Sort the folders by their full name.  	for (S32 i = 0; i < cats.count(); i++)  	{ -		cat = cats.get(i); -		cat_full_name = getFullFolderName(cat); +		const LLViewerInventoryCategory* cat = cats.get(i); +		std::string cat_full_name = getFullFolderName(cat);  		folders.push_back(folder_pair_t(cat->getUUID(), cat_full_name));  	}  	sort(folders.begin(), folders.end(), cmp_folders); diff --git a/indra/newview/llpanelmediasettingsgeneral.cpp b/indra/newview/llpanelmediasettingsgeneral.cpp index f601a8d51c..64a265219b 100644 --- a/indra/newview/llpanelmediasettingsgeneral.cpp +++ b/indra/newview/llpanelmediasettingsgeneral.cpp @@ -206,7 +206,7 @@ void LLPanelMediaSettingsGeneral::clearValues( void* userdata, bool editable)  {	  	LLPanelMediaSettingsGeneral *self =(LLPanelMediaSettingsGeneral *)userdata;  	self->mAutoLoop->clear(); -	self->mAutoPlay->clear(); +	self->mAutoPlay->setValue(LLSD(TRUE)); // set default value for auto play to true;  	self->mAutoScale->clear();  	self->mAutoZoom ->clear();  	self->mCurrentURL->clear(); diff --git a/indra/newview/llpanelpicks.cpp b/indra/newview/llpanelpicks.cpp index ada65c98a4..8eb0b69491 100644 --- a/indra/newview/llpanelpicks.cpp +++ b/indra/newview/llpanelpicks.cpp @@ -843,10 +843,13 @@ void LLPanelPicks::onPanelClassifiedClose(LLPanelClassifiedInfo* panel)  			{  				LLClassifiedItem* c_item = dynamic_cast<LLClassifiedItem*>(  					mClassifiedsList->getItemByValue(values[n])); - -				c_item->setClassifiedName(panel->getClassifiedName()); -				c_item->setDescription(panel->getDescription()); -				c_item->setSnapshotId(panel->getSnapshotId()); +				llassert(c_item); +				if (c_item) +				{ +					c_item->setClassifiedName(panel->getClassifiedName()); +					c_item->setDescription(panel->getDescription()); +					c_item->setSnapshotId(panel->getSnapshotId()); +				}  			}  		}  	} diff --git a/indra/newview/llplacesinventorypanel.cpp b/indra/newview/llplacesinventorypanel.cpp index 6c6eb7c719..f1e450a083 100644 --- a/indra/newview/llplacesinventorypanel.cpp +++ b/indra/newview/llplacesinventorypanel.cpp @@ -118,6 +118,7 @@ BOOL LLPlacesInventoryPanel::postBuild()  	mScroller->addChild(mFolders);  	mFolders->setScrollContainer(mScroller); +	mFolders->addChild(mFolders->mStatusTextBox);  	// cut subitems diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index a8feaf690d..3221745fa3 100644 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -661,7 +661,9 @@ void LLScriptEdCore::onBtnDynamicHelp()  		live_help_floater = new LLFloater(LLSD());  		LLUICtrlFactory::getInstance()->buildFloater(live_help_floater, "floater_lsl_guide.xml", NULL);  		LLFloater* parent = dynamic_cast<LLFloater*>(getParent()); -		parent->addDependentFloater(live_help_floater, TRUE); +		llassert(parent); +		if (parent) +			parent->addDependentFloater(live_help_floater, TRUE);  		live_help_floater->childSetCommitCallback("lock_check", onCheckLock, this);  		live_help_floater->childSetValue("lock_check", gSavedSettings.getBOOL("ScriptHelpFollowsCursor"));  		live_help_floater->childSetCommitCallback("history_combo", onHelpComboCommit, this); diff --git a/indra/newview/llsidepaneliteminfo.cpp b/indra/newview/llsidepaneliteminfo.cpp index 44348ba429..0275736f6d 100644 --- a/indra/newview/llsidepaneliteminfo.cpp +++ b/indra/newview/llsidepaneliteminfo.cpp @@ -231,20 +231,23 @@ void LLSidepanelItemInfo::refreshFromItem(LLViewerInventoryItem* item)  	// PERMISSIONS LOOKUP //  	//////////////////////// +	llassert(item); +	if (!item) return; +  	// do not enable the UI for incomplete items.  	BOOL is_complete = item->isComplete();  	const BOOL cannot_restrict_permissions = LLInventoryType::cannotRestrictPermissions(item->getInventoryType());  	const BOOL is_calling_card = (item->getInventoryType() == LLInventoryType::IT_CALLINGCARD);  	const LLPermissions& perm = item->getPermissions();  	const BOOL can_agent_manipulate = gAgent.allowOperation(PERM_OWNER, perm,  -															GP_OBJECT_MANIPULATE); +								GP_OBJECT_MANIPULATE);  	const BOOL can_agent_sell = gAgent.allowOperation(PERM_OWNER, perm,  -													  GP_OBJECT_SET_SALE) && +							  GP_OBJECT_SET_SALE) &&  		!cannot_restrict_permissions;  	const BOOL is_link = item->getIsLinkType();  	const LLUUID trash_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_TRASH); -	bool not_in_trash = item && (item->getUUID() != trash_id) && !gInventory.isObjectDescendentOf(item->getUUID(), trash_id); +	bool not_in_trash = (item->getUUID() != trash_id) && !gInventory.isObjectDescendentOf(item->getUUID(), trash_id);  	// You need permission to modify the object to modify an inventory  	// item in it. diff --git a/indra/newview/llslurl.cpp b/indra/newview/llslurl.cpp index 3343ee88bd..e4773f99c5 100644 --- a/indra/newview/llslurl.cpp +++ b/indra/newview/llslurl.cpp @@ -40,6 +40,12 @@ const std::string LLSLURL::PREFIX_SL_HELP		= "secondlife://app.";  const std::string LLSLURL::PREFIX_SL			= "sl://";  const std::string LLSLURL::PREFIX_SECONDLIFE	= "secondlife://";  const std::string LLSLURL::PREFIX_SLURL_OLD		= "http://slurl.com/secondlife/"; + +// For DnD - even though www.slurl.com redirects to slurl.com in a browser, you can copy and drag +// text with www.slurl.com or a link explicitly pointing at www.slurl.com so testing for this +// version is required also. +const std::string LLSLURL::PREFIX_SLURL_WWW		= "http://www.slurl.com/secondlife/"; +  const std::string LLSLURL::PREFIX_SLURL			= "http://maps.secondlife.com/secondlife/";  const std::string LLSLURL::APP_TOKEN = "app/"; @@ -68,7 +74,10 @@ std::string LLSLURL::stripProtocol(const std::string& url)  	{  		stripped.erase(0, PREFIX_SLURL_OLD.length());  	} - +	else if (matchPrefix(stripped, PREFIX_SLURL_WWW)) +	{ +		stripped.erase(0, PREFIX_SLURL_WWW.length()); +	}  	return stripped;  } @@ -81,6 +90,7 @@ bool LLSLURL::isSLURL(const std::string& url)  	if (matchPrefix(url, PREFIX_SECONDLIFE))	return true;  	if (matchPrefix(url, PREFIX_SLURL))			return true;  	if (matchPrefix(url, PREFIX_SLURL_OLD))		return true; +	if (matchPrefix(url, PREFIX_SLURL_WWW))		return true;  	return false;  } @@ -91,6 +101,7 @@ bool LLSLURL::isSLURLCommand(const std::string& url)  	if (matchPrefix(url, PREFIX_SL + APP_TOKEN) ||  		matchPrefix(url, PREFIX_SECONDLIFE + "/" + APP_TOKEN) ||  		matchPrefix(url, PREFIX_SLURL + APP_TOKEN) || +		matchPrefix(url, PREFIX_SLURL_WWW + APP_TOKEN) ||  		matchPrefix(url, PREFIX_SLURL_OLD + APP_TOKEN) )  	{  		return true; diff --git a/indra/newview/llslurl.h b/indra/newview/llslurl.h index 21b32ce409..6a695e84f3 100644 --- a/indra/newview/llslurl.h +++ b/indra/newview/llslurl.h @@ -51,6 +51,7 @@ public:  	static const std::string PREFIX_SECONDLIFE;  	static const std::string PREFIX_SLURL;  	static const std::string PREFIX_SLURL_OLD; +	static const std::string PREFIX_SLURL_WWW;  	static const std::string APP_TOKEN; diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp index 4a61130785..6dcf4bc798 100644 --- a/indra/newview/lltexturefetch.cpp +++ b/indra/newview/lltexturefetch.cpp @@ -982,7 +982,12 @@ bool LLTextureFetchWorker::doWork(S32 param)  		}  		if (mLoadedDiscard < 0)  		{ -			llerrs << "Decode entered with invalid mLoadedDiscard. ID = " << mID << llendl; +			//llerrs << "Decode entered with invalid mLoadedDiscard. ID = " << mID << llendl; + +			//abort, don't decode +			mState = DONE; +			setPriority(LLWorkerThread::PRIORITY_LOW | mWorkPriority); +			return true;  		}  		setPriority(LLWorkerThread::PRIORITY_LOW | mWorkPriority); // Set priority first since Responder may change it  		mRawImage = NULL; diff --git a/indra/newview/lltoolpie.cpp b/indra/newview/lltoolpie.cpp index bf1e307d71..fdf9e1df2e 100644 --- a/indra/newview/lltoolpie.cpp +++ b/indra/newview/lltoolpie.cpp @@ -1485,6 +1485,12 @@ BOOL LLToolPie::pickRightMouseDownCallback()  			while( object && object->isAttachment())  			{  				object = (LLViewerObject*)object->getParent(); +				llassert(object); +			} + +			if (!object) +			{ +				return TRUE; // unexpected, but escape  			}  			// Object is an avatar, so check for mute by id. diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 8aae90ec3c..b15a9a9e99 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -2555,7 +2555,7 @@ void handle_object_inspect()  		key["task"] = "task";  		LLSideTray::getInstance()->showPanel("sidepanel_inventory", key);  	} - +	  	/*  	// Old floater properties  	LLFloaterReg::showInstance("inspect", LLSD()); @@ -5599,8 +5599,6 @@ void handle_buy_currency()  	LLFloaterBuyCurrency::buyCurrency();  } - -  class LLFloaterVisible : public view_listener_t  {  	bool handleEvent(const LLSD& userdata) @@ -5644,6 +5642,25 @@ class LLShowSidetrayPanel : public view_listener_t  	}  }; +class LLSidetrayPanelVisible : public view_listener_t +{ +	bool handleEvent(const LLSD& userdata) +	{ +		std::string panel_name = userdata.asString(); +		// Toggle the panel +		if (LLSideTray::getInstance()->isPanelActive(panel_name)) +		{ +			return true; +		} +		else +		{ +			return false; +		} +		 +	} +}; + +  bool callback_show_url(const LLSD& notification, const LLSD& response)  {  	S32 option = LLNotificationsUtil::getSelectedOption(notification, response); @@ -8028,6 +8045,7 @@ void initialize_menus()  	view_listener_t::addMenu(new LLFloaterVisible(), "FloaterVisible");  	view_listener_t::addMenu(new LLShowSidetrayPanel(), "ShowSidetrayPanel"); +	view_listener_t::addMenu(new LLSidetrayPanelVisible(), "SidetrayPanelVisible");  	view_listener_t::addMenu(new LLSomethingSelected(), "SomethingSelected");  	view_listener_t::addMenu(new LLSomethingSelectedNoHUD(), "SomethingSelectedNoHUD");  	view_listener_t::addMenu(new LLEditableSelected(), "EditableSelected"); diff --git a/indra/newview/llviewermenufile.cpp b/indra/newview/llviewermenufile.cpp index 6bad8843fd..84b270f8cc 100644 --- a/indra/newview/llviewermenufile.cpp +++ b/indra/newview/llviewermenufile.cpp @@ -796,84 +796,88 @@ void upload_done_callback(const LLUUID& uuid, void* user_data, S32 result, LLExt  	//LLAssetType::EType pref_loc = data->mPreferredLocation;  	BOOL is_balance_sufficient = TRUE; -	if(result >= 0) +	if(data)  	{ -		LLFolderType::EType dest_loc = (data->mPreferredLocation == LLFolderType::FT_NONE) ? LLFolderType::assetTypeToFolderType(data->mAssetInfo.mType) : data->mPreferredLocation; - -		if (LLAssetType::AT_SOUND == data->mAssetInfo.mType || -			LLAssetType::AT_TEXTURE == data->mAssetInfo.mType || -			LLAssetType::AT_ANIMATION == data->mAssetInfo.mType) +		if (result >= 0)  		{ -			// Charge the user for the upload. -			LLViewerRegion* region = gAgent.getRegion(); - -			if(!(can_afford_transaction(expected_upload_cost))) -			{ -				LLFloaterBuyCurrency::buyCurrency( -					llformat(LLTrans::getString("UploadingCosts").c_str(), -							 data->mAssetInfo.getName().c_str()), -					         expected_upload_cost); -				is_balance_sufficient = FALSE; -			} -			else if(region) +			LLFolderType::EType dest_loc = (data->mPreferredLocation == LLFolderType::FT_NONE) ? LLFolderType::assetTypeToFolderType(data->mAssetInfo.mType) : data->mPreferredLocation; +			 +			if (LLAssetType::AT_SOUND == data->mAssetInfo.mType || +			    LLAssetType::AT_TEXTURE == data->mAssetInfo.mType || +			    LLAssetType::AT_ANIMATION == data->mAssetInfo.mType)  			{ -				// Charge user for upload -				gStatusBar->debitBalance(expected_upload_cost); +				// Charge the user for the upload. +				LLViewerRegion* region = gAgent.getRegion(); -				LLMessageSystem* msg = gMessageSystem; -				msg->newMessageFast(_PREHASH_MoneyTransferRequest); -				msg->nextBlockFast(_PREHASH_AgentData); -				msg->addUUIDFast(_PREHASH_AgentID, gAgent.getID()); -				msg->addUUIDFast(_PREHASH_SessionID, gAgent.getSessionID()); -				msg->nextBlockFast(_PREHASH_MoneyData); -				msg->addUUIDFast(_PREHASH_SourceID, gAgent.getID()); -				msg->addUUIDFast(_PREHASH_DestID, LLUUID::null); -				msg->addU8("Flags", 0); -				// we tell the sim how much we were expecting to pay so it -				// can respond to any discrepancy -				msg->addS32Fast(_PREHASH_Amount, expected_upload_cost); -				msg->addU8Fast(_PREHASH_AggregatePermNextOwner, (U8)LLAggregatePermissions::AP_EMPTY); -				msg->addU8Fast(_PREHASH_AggregatePermInventory, (U8)LLAggregatePermissions::AP_EMPTY); -				msg->addS32Fast(_PREHASH_TransactionType, TRANS_UPLOAD_CHARGE); -				msg->addStringFast(_PREHASH_Description, NULL); -				msg->sendReliable(region->getHost()); +				if(!(can_afford_transaction(expected_upload_cost))) +				{ +					LLFloaterBuyCurrency::buyCurrency( +									  llformat(LLTrans::getString("UploadingCosts").c_str(), +										   data->mAssetInfo.getName().c_str()), +									  expected_upload_cost); +					is_balance_sufficient = FALSE; +				} +				else if(region) +				{ +					// Charge user for upload +					gStatusBar->debitBalance(expected_upload_cost); +					 +					LLMessageSystem* msg = gMessageSystem; +					msg->newMessageFast(_PREHASH_MoneyTransferRequest); +					msg->nextBlockFast(_PREHASH_AgentData); +					msg->addUUIDFast(_PREHASH_AgentID, gAgent.getID()); +					msg->addUUIDFast(_PREHASH_SessionID, gAgent.getSessionID()); +					msg->nextBlockFast(_PREHASH_MoneyData); +					msg->addUUIDFast(_PREHASH_SourceID, gAgent.getID()); +					msg->addUUIDFast(_PREHASH_DestID, LLUUID::null); +					msg->addU8("Flags", 0); +					// we tell the sim how much we were expecting to pay so it +					// can respond to any discrepancy +					msg->addS32Fast(_PREHASH_Amount, expected_upload_cost); +					msg->addU8Fast(_PREHASH_AggregatePermNextOwner, (U8)LLAggregatePermissions::AP_EMPTY); +					msg->addU8Fast(_PREHASH_AggregatePermInventory, (U8)LLAggregatePermissions::AP_EMPTY); +					msg->addS32Fast(_PREHASH_TransactionType, TRANS_UPLOAD_CHARGE); +					msg->addStringFast(_PREHASH_Description, NULL); +					msg->sendReliable(region->getHost()); +				}  			} -		} -		if(is_balance_sufficient) -		{ -			// Actually add the upload to inventory -			llinfos << "Adding " << uuid << " to inventory." << llendl; -			const LLUUID folder_id = gInventory.findCategoryUUIDForType(dest_loc); -			if(folder_id.notNull()) +			if(is_balance_sufficient)  			{ -				U32 next_owner_perms = data->mNextOwnerPerm; -				if(PERM_NONE == next_owner_perms) +				// Actually add the upload to inventory +				llinfos << "Adding " << uuid << " to inventory." << llendl; +				const LLUUID folder_id = gInventory.findCategoryUUIDForType(dest_loc); +				if(folder_id.notNull())  				{ -					next_owner_perms = PERM_MOVE | PERM_TRANSFER; +					U32 next_owner_perms = data->mNextOwnerPerm; +					if(PERM_NONE == next_owner_perms) +					{ +						next_owner_perms = PERM_MOVE | PERM_TRANSFER; +					} +					create_inventory_item(gAgent.getID(), gAgent.getSessionID(), +							      folder_id, data->mAssetInfo.mTransactionID, data->mAssetInfo.getName(), +							      data->mAssetInfo.getDescription(), data->mAssetInfo.mType, +							      data->mInventoryType, NOT_WEARABLE, next_owner_perms, +							      LLPointer<LLInventoryCallback>(NULL)); +				} +				else +				{ +					llwarns << "Can't find a folder to put it in" << llendl;  				} -				create_inventory_item(gAgent.getID(), gAgent.getSessionID(), -					folder_id, data->mAssetInfo.mTransactionID, data->mAssetInfo.getName(), -					data->mAssetInfo.getDescription(), data->mAssetInfo.mType, -					data->mInventoryType, NOT_WEARABLE, next_owner_perms, -					LLPointer<LLInventoryCallback>(NULL)); -			} -			else -			{ -				llwarns << "Can't find a folder to put it in" << llendl;  			}  		} -	} -	else // 	if(result >= 0) -	{ -		LLSD args; -		args["FILE"] = LLInventoryType::lookupHumanReadable(data->mInventoryType); -		args["REASON"] = std::string(LLAssetStorage::getErrorString(result)); -		LLNotificationsUtil::add("CannotUploadReason", args); +		else // 	if(result >= 0) +		{ +			LLSD args; +			args["FILE"] = LLInventoryType::lookupHumanReadable(data->mInventoryType); +			args["REASON"] = std::string(LLAssetStorage::getErrorString(result)); +			LLNotificationsUtil::add("CannotUploadReason", args); +		}  	}  	LLUploadDialog::modalUploadFinished();  	delete data; +	data = NULL;  	// *NOTE: This is a pretty big hack. What this does is check the  	// file picker if there are any more pending uploads. If so, diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp index 984f003411..b66f58d853 100644 --- a/indra/newview/llviewertexture.cpp +++ b/indra/newview/llviewertexture.cpp @@ -1519,12 +1519,12 @@ F32 LLViewerFetchedTexture::calcDecodePriority()  		}  		else if (!isJustBound() && mCachedRawImageReady)  		{ -			if(mBoostLevel < BOOST_HIGH) -			{ -				// We haven't rendered this in a while, de-prioritize it -				desired_discard += 2; -			} -			else +			//if(mBoostLevel < BOOST_HIGH) +			//{ +			//	// We haven't rendered this in a while, de-prioritize it +			//	desired_discard += 2; +			//} +			//else  			{  				// We haven't rendered this in the last half second, and we have a cached raw image, leave the desired discard as-is  				desired_discard = cur_discard; @@ -2342,14 +2342,8 @@ void LLViewerFetchedTexture::setCachedRawImage()  			{  				--i ;  			} -			//if(mForSculpt) -			//{ -			//	mRawImage->scaleDownWithoutBlending(w >> i, h >> i) ; -			//} -			//else -			{ -				mRawImage->scale(w >> i, h >> i) ; -			} +			 +			mRawImage->scale(w >> i, h >> i) ;  		}  		mCachedRawImage = mRawImage ;  		mCachedRawDiscardLevel = mRawDiscardLevel + i ;			 @@ -2699,7 +2693,7 @@ void LLViewerLODTexture::processTextureStats()  		}  		else  		{ -			if(isLargeImage() && !isJustBound() && mAdditionalDecodePriority < 1.0f) +			if(isLargeImage() && !isJustBound() && mAdditionalDecodePriority < 0.3f)  			{  				//if is a big image and not being used recently, nor close to the view point, do not load hi-res data.  				mMaxVirtualSize = llmin(mMaxVirtualSize, (F32)LLViewerTexture::sMinLargeImageSize) ; @@ -2885,12 +2879,11 @@ LLViewerMediaTexture::~LLViewerMediaTexture()  void LLViewerMediaTexture::reinit(BOOL usemipmaps /* = TRUE */)  { -	mGLTexturep = NULL ; -	init(false); +	llassert(mGLTexturep.notNull()) ; +  	mUseMipMaps = usemipmaps ;  	getLastReferencedTimer()->reset() ; - -	generateGLTexture() ; +	mGLTexturep->setUseMipMaps(mUseMipMaps) ;  	mGLTexturep->setNeedsAlphaAndPickMask(FALSE) ;  } diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index cf0808ea5b..698b6be98b 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -1492,9 +1492,9 @@ BOOL LLVOAvatar::parseSkeletonFile(const std::string& filename)  	//-------------------------------------------------------------------------  	// parse the file  	//------------------------------------------------------------------------- -	BOOL success = sSkeletonXMLTree.parseFile( filename, FALSE ); +	BOOL parsesuccess = sSkeletonXMLTree.parseFile( filename, FALSE ); -	if (!success) +	if (!parsesuccess)  	{  		llerrs << "Can't parse skeleton file: " << filename << llendl;  		return FALSE; @@ -1505,11 +1505,13 @@ BOOL LLVOAvatar::parseSkeletonFile(const std::string& filename)  	if (!root)   	{  		llerrs << "No root node found in avatar skeleton file: " << filename << llendl; +		return FALSE;  	}  	if( !root->hasName( "linden_skeleton" ) )  	{  		llerrs << "Invalid avatar skeleton file header: " << filename << llendl; +		return FALSE;  	}  	std::string version; @@ -1517,6 +1519,7 @@ BOOL LLVOAvatar::parseSkeletonFile(const std::string& filename)  	if( !root->getFastAttributeString( version_string, version ) || (version != "1.0") )  	{  		llerrs << "Invalid avatar skeleton file version: " << version << " in file: " << filename << llendl; +		return FALSE;  	}  	return TRUE; @@ -2192,13 +2195,16 @@ BOOL LLVOAvatar::idleUpdate(LLAgent &agent, LLWorld &world, const F64 &time)  	// store off last frame's root position to be consistent with camera position  	LLVector3 root_pos_last = mRoot.getWorldPosition();  	BOOL detailed_update = updateCharacter(agent); -	BOOL voice_enabled = gVoiceClient->getVoiceEnabled( mID ) && gVoiceClient->inProximalChannel();  	if (gNoRender)  	{  		return TRUE;  	} +	static LLUICachedControl<bool> visualizers_in_calls("ShowVoiceVisualizersInCalls", false); +	bool voice_enabled = (visualizers_in_calls || gVoiceClient->inProximalChannel()) && +						 gVoiceClient->getVoiceEnabled(mID); +  	idleUpdateVoiceVisualizer( voice_enabled );  	idleUpdateMisc( detailed_update );  	idleUpdateAppearanceAnimation(); diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index bfe38c14ba..fa00396c34 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -679,6 +679,7 @@ void LLVOVolume::updateTextureVirtualSize()  			vsize = area;  			imagep->setBoostLevel(LLViewerTexture::BOOST_HUD);   			face->setPixelArea(area); // treat as full screen +			face->setVirtualSize(vsize);  		}  		else  		{ @@ -695,8 +696,7 @@ void LLVOVolume::updateTextureVirtualSize()  				gPipeline.markRebuild(mDrawable, LLDrawable::REBUILD_TCOORD, FALSE);  			}  		} -		 -		face->setVirtualSize(vsize); +				  		if (gPipeline.hasRenderDebugMask(LLPipeline::RENDER_DEBUG_TEXTURE_AREA))  		{  			if (vsize < min_vsize) min_vsize = vsize; diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index bd22fc5f2e..dd9634a234 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -1355,6 +1355,7 @@ void LLPipeline::updateMoveNormalAsync(LLDrawable* drawablep)  	if (!drawablep)  	{  		llerrs << "updateMove called with NULL drawablep" << llendl; +		return;  	}  	if (drawablep->isState(LLDrawable::EARLY_MOVE))  	{ diff --git a/indra/newview/skins/default/xui/en/menu_viewer.xml b/indra/newview/skins/default/xui/en/menu_viewer.xml index df6c7bd9cb..07a366da7f 100644 --- a/indra/newview/skins/default/xui/en/menu_viewer.xml +++ b/indra/newview/skins/default/xui/en/menu_viewer.xml @@ -55,9 +55,10 @@          </menu_item_call>          <menu_item_check           label="My Inventory" -         layout="topleft"           name="Inventory" -         shortcut="control|shift|I"> +         layout="topleft" +         shortcut="control|shift|I" +		 visible="false">              <menu_item_check.on_check               function="Floater.Visible"               parameter="inventory" /> @@ -65,24 +66,31 @@               function="Floater.Toggle"               parameter="inventory" />          </menu_item_check> -        <menu_item_call -         label="Show Inventory in Side Tray" +        <menu_item_check +         label="My Inventory"           name="ShowSidetrayInventory" +         layout="topleft"           shortcut="control|I" -         visible="false"> -            <menu_item_call.on_click +		 visible="true"> +            <menu_item_check.on_check +             function="SidetrayPanelVisible" +             parameter="sidepanel_inventory" /> +            <menu_item_check.on_click               function="ShowSidetrayPanel"               parameter="sidepanel_inventory" /> -        </menu_item_call> -        <menu_item_call +        </menu_item_check> +        <menu_item_check           label="My Gestures"           layout="topleft"           name="Gestures"           shortcut="control|G"> -            <menu_item_call.on_click +            <menu_item_check.on_check +             function="Floater.Visible" +             parameter="gestures" /> +            <menu_item_check.on_click               function="Floater.Toggle"               parameter="gestures" /> -        </menu_item_call> +        </menu_item_check>          <menu           label="My Status"           layout="topleft" diff --git a/indra/newview/skins/default/xui/en/panel_main_inventory.xml b/indra/newview/skins/default/xui/en/panel_main_inventory.xml index 4030c7184a..c6a4233c9c 100644 --- a/indra/newview/skins/default/xui/en/panel_main_inventory.xml +++ b/indra/newview/skins/default/xui/en/panel_main_inventory.xml @@ -37,7 +37,7 @@ halign="center"       top_pad="4"       width="305">          <inventory_panel -	border="false" +	       border="false"           follows="all"           height="295"           label="MY INVENTORY" @@ -48,7 +48,7 @@ halign="center"           top="16"           width="290" />          <inventory_panel -	border="false" +	       border="false"           follows="all"           height="295"           label="RECENT" @@ -67,7 +67,7 @@ halign="center"       height="30"       layout="bottomleft"       left="0" -	 visible="true" +	   visible="true"       name="bottom_panel"       width="330">          <button @@ -118,7 +118,7 @@ halign="center"       mouse_opaque="false"       name="Inventory Menu"       top="0" -	 visible="true" +	   visible="true"       width="290">          <menu           height="101" diff --git a/indra/newview/skins/default/xui/en/panel_people.xml b/indra/newview/skins/default/xui/en/panel_people.xml index 31ea54cf40..446bf0dc6e 100644 --- a/indra/newview/skins/default/xui/en/panel_people.xml +++ b/indra/newview/skins/default/xui/en/panel_people.xml @@ -236,7 +236,7 @@ If you're looking for people to hang out with, [secondlife:///app/worldmap try t               layout="topleft"               left="0"               name="group_list" -             no_filtered_groups_msg="No groups" +             no_filtered_groups_msg="[secondlife:///app/search/groups Try fine the group in search?]"               no_groups_msg="[secondlife:///app/search/groups Try searching for some groups to join.]"               top="0"               width="313" /> diff --git a/indra/newview/skins/default/xui/en/panel_preferences_chat.xml b/indra/newview/skins/default/xui/en/panel_preferences_chat.xml index 433dfc17fe..2e81139ef2 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_chat.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_chat.xml @@ -9,13 +9,22 @@   name="chat"   top="1"   width="517"> -    <radio_group +  <text +   follows="left|top" +   layout="topleft" +   left="30" +   height="12" +   width="120" +   top="10"> +    Font size: +  </text> +  <radio_group       height="30"       layout="topleft" -     left="30" -	 control_name="ChatFontSize" +     left="40" +	   control_name="ChatFontSize"       name="chat_font_size" -     top="10" +     top_pad="0"       width="440">          <radio_item           height="16" @@ -45,12 +54,24 @@           top_delta="0"           width="125" />      </radio_group> + +    <text +      follows="left|top" +      layout="topleft" +      left="30" +      height="12" +      top_pad="10"  +      width="120" +      > +    Font colors: +    </text>   +        <color_swatch       can_apply_immediately="true"       follows="left|top"       height="47"       layout="topleft" -     left="30" +     left="40"       name="user"       top_pad="10"       width="44" > @@ -79,7 +100,7 @@       follows="left|top"       height="47"       layout="topleft" -     left="180" +     left="190"       name="agent"       top_pad="-17"       width="44" > @@ -110,7 +131,7 @@       height="47"       label_width="60"       layout="topleft" -     left="350" +     left="360"       name="im"       top_pad="-17"       width="44"> @@ -141,7 +162,7 @@       height="47"       label_width="44"       layout="topleft" -     left="30" +     left="40"       name="system"       top_pad="40"       width="44" > @@ -171,7 +192,7 @@       follows="left|top"       height="47"       layout="topleft" -     left="180" +     left="190"       name="script_error"       top_pad="-17"       width="44"> @@ -201,7 +222,7 @@       follows="left|top"       height="47"       layout="topleft" -     left="350" +     left="360"       name="objects"       top_pad="-17"       width="44" > @@ -231,7 +252,7 @@       follows="left|top"       height="47"       layout="topleft" -     left="30" +     left="40"       name="owner"       top_pad="40"       width="44" > @@ -261,7 +282,7 @@       follows="left|top"       height="47"       layout="topleft" -     left="180" +     left="190"       name="links"       top_pad="-17"       width="44" > @@ -314,6 +335,8 @@       top_pad="5"       width="400" />      <text +     follows="left|top" +     layout="topleft"       left="30"       height="20"       width="120" @@ -321,17 +344,20 @@       Show IMs in:      </text>      <text -	 left_pad="6" -	 height="20" -	 width="100" -	 text_color="White_25" -	 > +     follows="left|top" +     layout="topleft" +     top_delta="0"  +     left="120"  +  	 height="20" +	   width="100" +     text_color="White_25" +	  >        (requires restart)        </text>      <radio_group       height="30"       layout="topleft" -     left="30" +     left="40"       control_name="ChatWindow"       name="chat_window"       top_pad="0" diff --git a/indra/newview/skins/default/xui/en/panel_preferences_privacy.xml b/indra/newview/skins/default/xui/en/panel_preferences_privacy.xml index f7e3ede93c..f78d90c434 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_privacy.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_privacy.xml @@ -17,6 +17,7 @@       follows="left|bottom"       height="23"       label="Clear History" +     tool_tip="Clear login image, last location, teleport history, web, and texture cache"       layout="topleft"       left="30"       name="clear_cache" diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index 2112f7f19e..39762d57fb 100644 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -1805,7 +1805,7 @@ Clears (deletes) the media and all params from the given face.  	<string name="LeaveMouselook">Press ESC to return to World View</string>  	<!-- inventory --> -	<string name="InventoryNoMatchingItems">No matching items found in inventory.</string> +	<string name="InventoryNoMatchingItems">[secondlife:///app/search/groups No matching items found in inventory.Try "Search"?]</string>    <string name="FavoritesNoMatchingItems">Drag a landmark here to add it to your favorites.</string>  	<string name="InventoryNoTexture">  		You do not have a copy of diff --git a/install.xml b/install.xml index 1e8fa70d46..2461ac8786 100644 --- a/install.xml +++ b/install.xml @@ -962,9 +962,9 @@ anguage Infrstructure (CLI) international standard</string>            <key>windows</key>            <map>              <key>md5sum</key> -            <string>df0f751818dddb566d55499286c727a8</string> +            <string>1e9798dc424a6f6c2bea50649bbcc7ae</string>              <key>url</key> -            <uri>http://viewer-source-downloads.s3.amazonaws.com/install_pkgs/llqtwebkit-windows-qt4.6-20100208.tar.bz2</uri> +            <uri>http://viewer-source-downloads.s3.amazonaws.com/install_pkgs/llqtwebkit-windows-qt4.6-20100210.tar.bz2</uri>            </map>          </map>        </map> | 
