aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelcontents.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelcontents.cpp17
1 files changed, 7 insertions, 10 deletions
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 @@
2 * @file llpanelcontents.cpp 2 * @file llpanelcontents.cpp
3 * @brief Object contents panel in the tools floater. 3 * @brief Object contents panel in the tools floater.
4 * 4 *
5 * $LicenseInfo:firstyear=2001&license=viewergpl$
6 *
5 * Copyright (c) 2001-2007, Linden Research, Inc. 7 * Copyright (c) 2001-2007, Linden Research, Inc.
6 * 8 *
7 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
@@ -24,6 +26,7 @@
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE. 28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
27 */ 30 */
28 31
29#include "llviewerprecompiledheaders.h" 32#include "llviewerprecompiledheaders.h"
@@ -135,11 +138,8 @@ void LLPanelContents::getState(LLViewerObject *objectp )
135 138
136void LLPanelContents::refresh() 139void LLPanelContents::refresh()
137{ 140{
138 LLViewerObject* object = gSelectMgr->getSelection()->getFirstRootObject(); 141 const BOOL children_ok = TRUE;
139 if(!object) 142 LLViewerObject* object = gSelectMgr->getSelection()->getFirstRootObject(children_ok);
140 {
141 object = gSelectMgr->getSelection()->getFirstObject();
142 }
143 143
144 getState(object); 144 getState(object);
145 if (mPanelInventory) 145 if (mPanelInventory)
@@ -157,11 +157,8 @@ void LLPanelContents::refresh()
157// static 157// static
158void LLPanelContents::onClickNewScript(void *userdata) 158void LLPanelContents::onClickNewScript(void *userdata)
159{ 159{
160 LLViewerObject* object = gSelectMgr->getSelection()->getFirstRootObject(); 160 const BOOL children_ok = TRUE;
161 if(!object) 161 LLViewerObject* object = gSelectMgr->getSelection()->getFirstRootObject(children_ok);
162 {
163 object = gSelectMgr->getSelection()->getFirstObject();
164 }
165 if(object) 162 if(object)
166 { 163 {
167 LLPermissions perm; 164 LLPermissions perm;