mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
Prim Copying (both CTRL+D and shift-drag) should now work.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user