if sited avatar cross fails, dont add it to physics and dont mess scripts

(?)
avinationmerge
UbitUmarov 2014-07-22 16:28:30 +01:00
parent fe900b28c6
commit f394fabfc0
1 changed files with 4 additions and 1 deletions

View File

@ -1679,6 +1679,9 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
"[ENTITY TRANSFER MODULE]: Region {0} would not accept update for agent {1} on cross attempt. Returning to original region.",
neighbourRegion.RegionName, agent.Name);
if (agent.ParentUUID != UUID.Zero && agent.ParentID == 0)
return false;
ReInstantiateScripts(agent);
agent.AddToPhysicalScene(isFlying);