Always zero the PhysActor on dupes to prevent side effects on the orignal prim

This commit is contained in:
Melanie
2012-03-07 01:03:26 +00:00
parent f3678d217f
commit 7769362687

View File

@@ -1546,10 +1546,7 @@ namespace OpenSim.Region.Framework.Scenes
if (userExposed)
dupe.UUID = UUID.Random();
//memberwiseclone means it also clones the physics actor reference
// This will make physical prim 'bounce' if not set to null.
if (!userExposed)
dupe.PhysActor = null;
dupe.PhysActor = null;
dupe.OwnerID = AgentID;
dupe.GroupID = GroupID;