From 215f423cbe18fe9ca14a26caef918d303bad28ff Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:45:11 -0500 Subject: Second Life viewer sources 1.18.4.0-RC --- linden/indra/newview/llpanelcontents.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'linden/indra/newview/llpanelcontents.cpp') diff --git a/linden/indra/newview/llpanelcontents.cpp b/linden/indra/newview/llpanelcontents.cpp index 73c1cac..50ff7bd 100644 --- a/linden/indra/newview/llpanelcontents.cpp +++ b/linden/indra/newview/llpanelcontents.cpp @@ -2,6 +2,8 @@ * @file llpanelcontents.cpp * @brief Object contents panel in the tools floater. * + * $LicenseInfo:firstyear=2001&license=viewergpl$ + * * Copyright (c) 2001-2007, Linden Research, Inc. * * Second Life Viewer Source Code @@ -24,6 +26,7 @@ * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, * COMPLETENESS OR PERFORMANCE. + * $/LicenseInfo$ */ #include "llviewerprecompiledheaders.h" @@ -135,11 +138,8 @@ void LLPanelContents::getState(LLViewerObject *objectp ) void LLPanelContents::refresh() { - LLViewerObject* object = gSelectMgr->getSelection()->getFirstRootObject(); - if(!object) - { - object = gSelectMgr->getSelection()->getFirstObject(); - } + const BOOL children_ok = TRUE; + LLViewerObject* object = gSelectMgr->getSelection()->getFirstRootObject(children_ok); getState(object); if (mPanelInventory) @@ -157,11 +157,8 @@ void LLPanelContents::refresh() // static void LLPanelContents::onClickNewScript(void *userdata) { - LLViewerObject* object = gSelectMgr->getSelection()->getFirstRootObject(); - if(!object) - { - object = gSelectMgr->getSelection()->getFirstObject(); - } + const BOOL children_ok = TRUE; + LLViewerObject* object = gSelectMgr->getSelection()->getFirstRootObject(children_ok); if(object) { LLPermissions perm; -- cgit v1.1