diff --git a/indra/newview/llpanelcontents.cpp b/indra/newview/llpanelcontents.cpp index 4c76e7491b456b08c81f88ac70dbf8e7e534360c..30adea7d73fe09c649cfd47d4b3f6ce293281f34 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))) {