Null PhysActor on SOP.Copy() to prevent clobbering the original one
parent
de03d1ece0
commit
17b1454d6f
|
@ -1691,9 +1691,8 @@ 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)
|
||||
// The PhysActor cannot be valid on a copy because the copy is not in the scene yet.
|
||||
// Null it, the caller has to create a new one once the object is added to a scene
|
||||
dupe.PhysActor = null;
|
||||
|
||||
dupe.OwnerID = AgentID;
|
||||
|
|
Loading…
Reference in New Issue