mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Implement proper persistence of the following prim properties:
Floating text, Rotation, Texture animation, Particle System This will make "Eye Candy" scripts work without modification in XEngine. The use of the CHANGED_REGION_RESTART hack is no longer needed. Implemented in MySQL only, hovertext also in SQLite.
This commit is contained in:
@@ -1131,6 +1131,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
Name, UUID, m_scene.RegionInfo.RegionName);
|
||||
|
||||
SceneObjectGroup backup_group = Copy(OwnerID, GroupID, false);
|
||||
backup_group.RootPart.Velocity = RootPart.Velocity;
|
||||
backup_group.RootPart.Acceleration = RootPart.Acceleration;
|
||||
backup_group.RootPart.AngularVelocity = RootPart.AngularVelocity;
|
||||
backup_group.RootPart.ParticleSystem = RootPart.ParticleSystem;
|
||||
|
||||
datastore.StoreObject(backup_group, m_scene.RegionInfo.RegionID);
|
||||
HasGroupChanged = false;
|
||||
|
||||
Reference in New Issue
Block a user