mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Fixed errors being thrown by invalid PSYS_SRC_TARGET_KEY's in llParticleSystem - defaults to source prim (consistent with LL grid).
Should fix mantis 427.
This commit is contained in:
@@ -2254,7 +2254,15 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
break;
|
||||
|
||||
case (int)LSL_BaseClass.PSYS_SRC_TARGET_KEY:
|
||||
prules.Target = new LLUUID(rules.Data[i + 1].ToString());
|
||||
LLUUID key = LLUUID.Zero;
|
||||
if (LLUUID.TryParse(rules.Data[i + 1].ToString(), out key))
|
||||
{
|
||||
prules.Target = key;
|
||||
}
|
||||
else
|
||||
{
|
||||
prules.Target = m_host.UUID;
|
||||
}
|
||||
break;
|
||||
|
||||
case (int)LSL_BaseClass.PSYS_SRC_OMEGA:
|
||||
|
||||
Reference in New Issue
Block a user