diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llpanelcontents.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/indra/newview/llpanelcontents.cpp b/indra/newview/llpanelcontents.cpp index 4c76e7491b..30adea7d73 100644 --- a/indra/newview/llpanelcontents.cpp +++ b/indra/newview/llpanelcontents.cpp @@ -1,4 +1,4 @@ -/**  +/**   * @file llpanelcontents.cpp   * @brief Object contents panel in the tools floater.   * @@ -81,21 +81,21 @@ LLPanelContents::~LLPanelContents()  void LLPanelContents::getState(LLViewerObject *objectp )  {  	if( !objectp ) -	{	 +	{  		childSetEnabled("button new script",FALSE);  		//mBtnNewScript->setEnabled( FALSE );  		return;  	}  	// BUG? Check for all objects being editable? -	BOOL editable = gAgent.isGodlike()  +	BOOL editable = gAgent.isGodlike()  					|| (objectp->permModify() && objectp->permYouOwner());  	BOOL all_volume = gSelectMgr->selectionAllPCode( LL_PCODE_VOLUME );  	// Edit script button - ok if object is editable and there's an  	// unambiguous destination for the object. -	if(	editable &&  -		all_volume &&  +	if(	editable && +		all_volume &&  		((gSelectMgr->getSelection()->getRootObjectCount() == 1)  					|| (gSelectMgr->getSelection()->getObjectCount() == 1)))  	{ | 
