mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 10:45:40 +08:00
* refactor: For new objects, move attach to backup to occur when adding to a scene, rather than on creation of the group
* Adding to a scene is now parameterized such that one can choose not to actually persist that group * This is to support a use case where a module wants a scene which consists of both objects which are persisted, and ones which are just temporary for the lifetime of that server instance
This commit is contained in:
@@ -76,7 +76,7 @@ namespace OpenSim.Region.Examples.SimpleModule
|
||||
}
|
||||
|
||||
FileSystemObject fileObject = new FileSystemObject(m_scene, fileInfo, filePos);
|
||||
m_scene.AddSceneObject(fileObject);
|
||||
m_scene.AddSceneObject(fileObject, true);
|
||||
fileObject.ScheduleGroupForFullUpdate();
|
||||
}
|
||||
}
|
||||
@@ -107,7 +107,7 @@ namespace OpenSim.Region.Examples.SimpleModule
|
||||
ComplexObject complexObject =
|
||||
new ComplexObject(m_scene, regionInfo.RegionHandle, LLUUID.Zero, m_scene.PrimIDAllocate(),
|
||||
pos + posOffset);
|
||||
m_scene.AddSceneObject(complexObject);
|
||||
m_scene.AddSceneObject(complexObject, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ namespace OpenSim.Region.Examples.SimpleModule
|
||||
SceneObjectGroup sceneObject =
|
||||
new CpuCounterObject(m_scene, regionInfo.RegionHandle, LLUUID.Zero, m_scene.PrimIDAllocate(),
|
||||
pos + new LLVector3(1f, 1f, 1f));
|
||||
m_scene.AddSceneObject(sceneObject);
|
||||
m_scene.AddSceneObject(sceneObject, true);
|
||||
}
|
||||
|
||||
public void Close()
|
||||
|
||||
Reference in New Issue
Block a user