mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
Merge branch 'master' into careminster
Conflicts: .gitignore OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs prebuild.xml runprebuild.bat
This commit is contained in:
@@ -6766,6 +6766,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
ps.BurstRate = 0.1f;
|
||||
ps.PartMaxAge = 10.0f;
|
||||
ps.BurstPartCount = 1;
|
||||
ps.BlendFuncSource = ScriptBaseClass.PSYS_PART_BF_SOURCE_ALPHA;
|
||||
ps.BlendFuncDest = ScriptBaseClass.PSYS_PART_BF_ONE_MINUS_SOURCE_ALPHA;
|
||||
ps.PartStartGlow = 0.0f;
|
||||
ps.PartEndGlow = 0.0f;
|
||||
|
||||
return ps;
|
||||
}
|
||||
|
||||
@@ -6800,6 +6805,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
LSL_Vector tempv = new LSL_Vector();
|
||||
|
||||
float tempf = 0;
|
||||
int tmpi = 0;
|
||||
|
||||
for (int i = 0; i < rules.Length; i += 2)
|
||||
{
|
||||
@@ -6858,7 +6864,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
break;
|
||||
|
||||
case (int)ScriptBaseClass.PSYS_SRC_PATTERN:
|
||||
int tmpi = (int)rules.GetLSLIntegerItem(i + 1);
|
||||
tmpi = (int)rules.GetLSLIntegerItem(i + 1);
|
||||
prules.Pattern = (Primitive.ParticleSystem.SourcePattern)tmpi;
|
||||
break;
|
||||
|
||||
@@ -6878,6 +6884,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
prules.PartFlags &= 0xFFFFFFFD; // Make sure new angle format is off.
|
||||
break;
|
||||
|
||||
case (int)ScriptBaseClass.PSYS_PART_BLEND_FUNC_SOURCE:
|
||||
tmpi = (int)rules.GetLSLIntegerItem(i + 1);
|
||||
prules.BlendFuncSource = (byte)tmpi;
|
||||
break;
|
||||
|
||||
case (int)ScriptBaseClass.PSYS_PART_BLEND_FUNC_DEST:
|
||||
tmpi = (int)rules.GetLSLIntegerItem(i + 1);
|
||||
prules.BlendFuncDest = (byte)tmpi;
|
||||
break;
|
||||
|
||||
case (int)ScriptBaseClass.PSYS_PART_START_GLOW:
|
||||
tempf = (float)rules.GetLSLFloatItem(i + 1);
|
||||
prules.PartStartGlow = (float)tempf;
|
||||
break;
|
||||
|
||||
case (int)ScriptBaseClass.PSYS_PART_END_GLOW:
|
||||
tempf = (float)rules.GetLSLFloatItem(i + 1);
|
||||
prules.PartEndGlow = (float)tempf;
|
||||
break;
|
||||
|
||||
case (int)ScriptBaseClass.PSYS_SRC_TEXTURE:
|
||||
prules.Texture = ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, rules.GetLSLStringItem(i + 1));
|
||||
break;
|
||||
|
||||
@@ -368,7 +368,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
|
||||
|
||||
Vector3 ZeroVector = new Vector3(0, 0, 0);
|
||||
|
||||
bool nameSearch = (ts.name != null && ts.name != "");
|
||||
bool nameSearch = !string.IsNullOrEmpty(ts.name);
|
||||
|
||||
foreach (EntityBase ent in Entities)
|
||||
{
|
||||
@@ -608,7 +608,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
|
||||
return sensedEntities;
|
||||
senseEntity(sp);
|
||||
}
|
||||
else if (ts.name != null && ts.name != "")
|
||||
else if (!string.IsNullOrEmpty(ts.name))
|
||||
{
|
||||
ScenePresence sp;
|
||||
// Try lookup by name will return if/when found
|
||||
|
||||
Reference in New Issue
Block a user