diff options
author | McCabe Maxsted | 2009-03-01 04:33:54 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-03-01 04:33:54 -0700 |
commit | ddc9815e2f7a2bd077cdae149a4e95a45de2f9f6 (patch) | |
tree | 8d8e94dd2af3399e1ced240614f790b7d7693f3d | |
parent | Backported fix for VWR-3871 (prim position appears to be off) from 1.22 (diff) | |
download | meta-impy-ddc9815e2f7a2bd077cdae149a4e95a45de2f9f6.zip meta-impy-ddc9815e2f7a2bd077cdae149a4e95a45de2f9f6.tar.gz meta-impy-ddc9815e2f7a2bd077cdae149a4e95a45de2f9f6.tar.bz2 meta-impy-ddc9815e2f7a2bd077cdae149a4e95a45de2f9f6.tar.xz |
Backported fix for SVC-2771 (script resetting can fail) from 1.22
-rw-r--r-- | ChangeLog.txt | 6 | ||||
-rw-r--r-- | linden/indra/newview/llcompilequeue.cpp | 16 | ||||
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 5 |
3 files changed, 24 insertions, 3 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 1f33ca1..0a2561a 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -28,6 +28,12 @@ | |||
28 | Backported fix for VWR-3871 (prim position appears to be off) from 1.22. | 28 | Backported fix for VWR-3871 (prim position appears to be off) from 1.22. |
29 | 29 | ||
30 | 30 | ||
31 | * linden/indra/newview/llcompilequeue.cpp: | ||
32 | Backported fix for SVC-2771 (script resetting can fail) from 1.22. | ||
33 | * linden/indra/newview/llviewermenu.cpp: | ||
34 | Ditto. | ||
35 | |||
36 | |||
31 | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | 37 | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
32 | =- 1.1.0 RC2 -= | 38 | =- 1.1.0 RC2 -= |
33 | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | 39 | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
diff --git a/linden/indra/newview/llcompilequeue.cpp b/linden/indra/newview/llcompilequeue.cpp index fc2742f..b4f1a22 100644 --- a/linden/indra/newview/llcompilequeue.cpp +++ b/linden/indra/newview/llcompilequeue.cpp | |||
@@ -59,6 +59,7 @@ | |||
59 | #include "llfloaterchat.h" | 59 | #include "llfloaterchat.h" |
60 | #include "llviewerstats.h" | 60 | #include "llviewerstats.h" |
61 | #include "lluictrlfactory.h" | 61 | #include "lluictrlfactory.h" |
62 | #include "llselectmgr.h" | ||
62 | 63 | ||
63 | ///---------------------------------------------------------------------------- | 64 | ///---------------------------------------------------------------------------- |
64 | /// Local function declarations, constants, enums, and typedefs | 65 | /// Local function declarations, constants, enums, and typedefs |
@@ -194,7 +195,20 @@ BOOL LLFloaterScriptQueue::start() | |||
194 | { | 195 | { |
195 | //llinfos << "LLFloaterCompileQueue::start()" << llendl; | 196 | //llinfos << "LLFloaterCompileQueue::start()" << llendl; |
196 | std::string buffer; | 197 | std::string buffer; |
197 | buffer = llformat("Starting %s of %d items.", mStartString.c_str(), mObjectIDs.count()); // *TODO: Translate | 198 | |
199 | LLSelectMgr *mgr = LLSelectMgr::getInstance(); | ||
200 | LLObjectSelectionHandle selectHandle = mgr->getSelection(); | ||
201 | U32 n_objects = 0; | ||
202 | if (gSavedSettings.getBOOL("EditLinkedParts")) | ||
203 | { | ||
204 | n_objects = selectHandle->getObjectCount(); | ||
205 | } | ||
206 | else | ||
207 | { | ||
208 | n_objects = selectHandle->getRootObjectCount(); | ||
209 | } | ||
210 | |||
211 | buffer = llformat("Starting %s of %d items.", mStartString.c_str(), n_objects); // *TODO: Translate | ||
198 | 212 | ||
199 | LLScrollListCtrl* list = getChild<LLScrollListCtrl>("queue output"); | 213 | LLScrollListCtrl* list = getChild<LLScrollListCtrl>("queue output"); |
200 | list->addCommentText(buffer); | 214 | list->addCommentText(buffer); |
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 31fdcc3..486e4f1 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -5963,8 +5963,9 @@ void queue_actions(LLFloaterScriptQueue* q, const std::string& noscriptmsg, cons | |||
5963 | { | 5963 | { |
5964 | // Apply until an object fails | 5964 | // Apply until an object fails |
5965 | QueueObjects func(q); | 5965 | QueueObjects func(q); |
5966 | const bool firstonly = true; | 5966 | LLSelectMgr *mgr = LLSelectMgr::getInstance(); |
5967 | bool fail = LLSelectMgr::getInstance()->getSelection()->applyToObjects(&func, firstonly); | 5967 | LLObjectSelectionHandle selectHandle = mgr->getSelection(); |
5968 | bool fail = selectHandle->applyToObjects(&func); | ||
5968 | if(fail) | 5969 | if(fail) |
5969 | { | 5970 | { |
5970 | if ( !func.scripted ) | 5971 | if ( !func.scripted ) |