mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
fix script events on crossings in same instance. MemberWiseClone on part.clone is bad
This commit is contained in:
@@ -305,7 +305,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
private int m_scriptAccessPin;
|
||||
|
||||
private readonly Dictionary<UUID, scriptEvents> m_scriptEvents = new Dictionary<UUID, scriptEvents>();
|
||||
private Dictionary<UUID, scriptEvents> m_scriptEvents = new Dictionary<UUID, scriptEvents>();
|
||||
private Quaternion m_sitTargetOrientation = Quaternion.Identity;
|
||||
private Vector3 m_sitTargetPosition;
|
||||
private string m_sitAnimation = "SIT";
|
||||
@@ -2176,6 +2176,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (userExposed)
|
||||
dupe.UUID = UUID.Random();
|
||||
|
||||
dupe.m_scriptEvents = new Dictionary<UUID, scriptEvents>();
|
||||
|
||||
dupe.PhysActor = null;
|
||||
|
||||
dupe.OwnerID = AgentID;
|
||||
|
||||
Reference in New Issue
Block a user