mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +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:
@@ -315,8 +315,7 @@ namespace OpenSim.Data.Tests
|
||||
sop.ObjectFlags = 0;
|
||||
|
||||
SceneObjectGroup sog = new SceneObjectGroup();
|
||||
sog.AddPart(sop);
|
||||
sog.RootPart = sop;
|
||||
sog.SetRootPart(sop);
|
||||
|
||||
// Inserts group in DB
|
||||
db.StoreObject(sog,region3);
|
||||
@@ -795,8 +794,7 @@ namespace OpenSim.Data.Tests
|
||||
sop.Shape = PrimitiveBaseShape.Default;
|
||||
|
||||
SceneObjectGroup sog = new SceneObjectGroup();
|
||||
sog.AddPart(sop);
|
||||
sog.RootPart = sop;
|
||||
sog.SetRootPart(sop);
|
||||
return sog;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user