Prim Copying (both CTRL+D and shift-drag) should now work.

This commit is contained in:
MW
2007-07-13 19:01:09 +00:00
parent 41cd6cdfdd
commit 401af6ad4a
3 changed files with 66 additions and 44 deletions

View File

@@ -117,11 +117,13 @@ namespace OpenSim.Region.Environment.Scenes
dupe.m_world = this.m_world;
dupe.m_regionHandle = this.m_regionHandle;
Primitive newRoot = this.rootPrimitive.Copy((EntityBase)dupe, dupe);
Primitive newRoot = this.rootPrimitive.Copy(dupe, dupe);
dupe.rootPrimitive = newRoot;
dupe.rootPrimitive.Pos =( this.Pos + new LLVector3(0,0,1));
dupe.children.Add(dupe.rootPrimitive);
dupe.rootPrimitive.Pos = this.Pos;
dupe.Rotation = this.Rotation;
LLUUID rootu= dupe.rootUUID;
uint rooti = dupe.rootLocalID;
return dupe;
}