diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/InnerScene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/InnerScene.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs index 0116428..9aa3f20 100644 --- a/OpenSim/Region/Environment/Scenes/InnerScene.cs +++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs | |||
@@ -928,17 +928,22 @@ namespace OpenSim.Region.Environment.Scenes | |||
928 | { | 928 | { |
929 | SceneObjectGroup copy = originPrim.Copy(AgentID, GroupID); | 929 | SceneObjectGroup copy = originPrim.Copy(AgentID, GroupID); |
930 | copy.AbsolutePosition = copy.AbsolutePosition + offset; | 930 | copy.AbsolutePosition = copy.AbsolutePosition + offset; |
931 | copy.ResetIDs(); | ||
932 | |||
931 | lock (Entities) | 933 | lock (Entities) |
932 | { | 934 | { |
933 | Entities.Add(copy.UUID, copy); | 935 | Entities.Add(copy.UUID, copy); |
934 | } | 936 | } |
937 | |||
935 | m_numPrim++; | 938 | m_numPrim++; |
939 | |||
940 | copy.StartScripts(); | ||
936 | copy.ScheduleGroupForFullUpdate(); | 941 | copy.ScheduleGroupForFullUpdate(); |
937 | } | 942 | } |
938 | } | 943 | } |
939 | else | 944 | else |
940 | { | 945 | { |
941 | MainLog.Instance.Warn("client", "Attempted to duplicate nonexistant prim"); | 946 | MainLog.Instance.Warn("SCENE", "Attempted to duplicate nonexistant prim id {0}", GroupID); |
942 | } | 947 | } |
943 | } | 948 | } |
944 | 949 | ||