Only check for LSL bridge script name when actually creating the bridge instead of everytime a script is being uploaded

Fri, 19 Dec 2014 15:58:49 +0100

author
Ansariel
date
Fri, 19 Dec 2014 15:58:49 +0100
changeset 43093
bd4bab7d0868
parent 43092
139328538bb2
child 43094
02a50237407f

Only check for LSL bridge script name when actually creating the bridge instead of everytime a script is being uploaded

indra/newview/llassetuploadresponders.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/llassetuploadresponders.cpp	Fri Dec 19 10:55:28 2014 +0100
     1.2 +++ b/indra/newview/llassetuploadresponders.cpp	Fri Dec 19 15:58:49 2014 +0100
     1.3 @@ -617,9 +617,10 @@
     1.4  			  }
     1.5  		  }
     1.6  		// <FS:TT> Client LSL Bridge
     1.7 -		if (FSLSLBridge::instance().canUseBridge())
     1.8 +		FSLSLBridge& fs_bridge = FSLSLBridge::instance();
     1.9 +		if (fs_bridge.canUseBridge() && fs_bridge.getBridgeCreating())
    1.10  		{
    1.11 -			FSLSLBridge::instance().checkBridgeScriptName(mFileName);
    1.12 +			fs_bridge.checkBridgeScriptName(mFileName);
    1.13  		}
    1.14  		// </FS:TT>
    1.15  		  break;

mercurial