mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
* refactor: Expose SOG.SetRootPart for outsiders to use rather than setting RootPart and adding the part separately
* Make RootPart read only
This commit is contained in:
@@ -436,8 +436,8 @@ namespace OpenSim.Data.SQLite
|
||||
"[REGION DB]: No shape found for prim in storage, so setting default box shape");
|
||||
prim.Shape = PrimitiveBaseShape.Default;
|
||||
}
|
||||
group.AddPart(prim);
|
||||
group.RootPart = prim;
|
||||
|
||||
group.SetRootPart(prim);
|
||||
createdObjects.Add(group.UUID, group);
|
||||
retvals.Add(group);
|
||||
LoadItems(prim);
|
||||
@@ -1102,8 +1102,7 @@ namespace OpenSim.Data.SQLite
|
||||
// sop.TouchName = "";
|
||||
// sop.UUID = UUID.Random();
|
||||
// sop.Shape = PrimitiveBaseShape.Default;
|
||||
// sog.AddPart(sop);
|
||||
// sog.RootPart = sop;
|
||||
// sog.SetRootPart(sop);
|
||||
// Add breakpoint in above line. Check sop fields.
|
||||
|
||||
// TODO: this doesn't work yet because something more
|
||||
|
||||
Reference in New Issue
Block a user