@@ -122,9 +122,9 @@ namespace
122
122
class LLQueuedScriptAssetUpload : public LLScriptAssetUpload
123
123
{
124
124
public:
125
- LLQueuedScriptAssetUpload (LLUUID taskId, LLUUID itemId, LLUUID assetId, TargetType_t targetType ,
125
+ LLQueuedScriptAssetUpload (LLUUID taskId, LLUUID itemId, LLUUID assetId, std::string compileTarget ,
126
126
bool isRunning, std::string scriptName, LLUUID queueId, LLUUID exerienceId, taskUploadFinish_f finish) :
127
- LLScriptAssetUpload (taskId, itemId, targetType , isRunning,
127
+ LLScriptAssetUpload (taskId, itemId, compileTarget , isRunning,
128
128
exerienceId, std::string(), finish, nullptr ),
129
129
mScriptName (scriptName),
130
130
mQueueId (queueId)
@@ -183,9 +183,7 @@ struct LLScriptQueueData
183
183
184
184
// Default constructor
185
185
LLFloaterScriptQueue::LLFloaterScriptQueue (const LLSD& key) :
186
- LLFloater(key),
187
- mDone(false ),
188
- mMono(false )
186
+ LLFloater(key)
189
187
{
190
188
191
189
}
@@ -197,7 +195,7 @@ LLFloaterScriptQueue::~LLFloaterScriptQueue()
197
195
198
196
bool LLFloaterScriptQueue::postBuild ()
199
197
{
200
- childSetAction (" close" ,onCloseBtn,this );
198
+ childSetAction (" close" , onCloseBtn, this );
201
199
getChildView (" close" )->setEnabled (false );
202
200
setVisible (true );
203
201
return true ;
@@ -222,8 +220,8 @@ bool LLFloaterScriptQueue::start()
222
220
223
221
LLStringUtil::format_map_t args;
224
222
args[" [START]" ] = mStartString ;
225
- args[" [COUNT]" ] = llformat (" %d" , mObjectList .size ());
226
- buffer = getString (" Starting" , args);
223
+ args[" [COUNT]" ] = llformat (" %d" , mObjectList .size ());
224
+ buffer = getString (" Starting" , args);
227
225
228
226
getChild<LLScrollListCtrl>(" queue output" )->addSimpleElement (buffer, ADD_BOTTOM);
229
227
@@ -276,8 +274,8 @@ bool LLFloaterCompileQueue::hasExperience( const LLUUID& id ) const
276
274
return mExperienceIds .find (id) != mExperienceIds .end ();
277
275
}
278
276
279
- // // Attempt to record this asset ID. If it can not be inserted into the set
280
- // // then it has already been processed so return false.
277
+ // Attempt to record this asset ID. If it can not be inserted into the set
278
+ // then it has already been processed so return false.
281
279
282
280
void LLFloaterCompileQueue::handleHTTPResponse (std::string pumpName, const LLSD &expresult)
283
281
{
@@ -359,7 +357,7 @@ bool LLFloaterCompileQueue::processScript(LLHandle<LLFloaterCompileQueue> hfloat
359
357
LLCheckedHandle<LLFloaterCompileQueue> floater (hfloater);
360
358
// Dereferencing floater may fail. If they do they throw LLExeceptionStaleHandle.
361
359
// which is caught in objectScriptProcessingQueueCoro
362
- bool monocompile = floater->mMono ;
360
+ std::string compile_target = floater->mCompileTarget ;
363
361
364
362
// Initial test to see if we can (or should) attempt to compile the script.
365
363
LLInventoryItem *item = dynamic_cast <LLInventoryItem *>(inventory);
@@ -470,7 +468,7 @@ bool LLFloaterCompileQueue::processScript(LLHandle<LLFloaterCompileQueue> hfloat
470
468
LLResourceUploadInfo::ptr_t uploadInfo (new LLQueuedScriptAssetUpload (object->getID (),
471
469
inventory->getUUID (),
472
470
assetId,
473
- monocompile ? LLScriptAssetUpload::MONO : LLScriptAssetUpload::LSL2 ,
471
+ compile_target ,
474
472
true ,
475
473
inventory->getName (),
476
474
LLUUID (),
0 commit comments