mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Fix a small left over buglet and also add checking of the physics actor
position on backup. This way, ant object that has been moved will be checked for ghost prims as soon as it is persisted.
This commit is contained in:
@@ -100,7 +100,7 @@ namespace OpenSim
|
||||
|
||||
if (masterFileName != String.Empty)
|
||||
{
|
||||
if (File.Exists(masterFilePath)
|
||||
if (File.Exists(masterFilePath))
|
||||
{
|
||||
if (!sources.Contains(masterFilePath))
|
||||
sources.Add(masterFilePath);
|
||||
|
||||
@@ -1786,6 +1786,16 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// don't backup while it's selected or you're asking for changes mid stream.
|
||||
if (isTimeToPersist() || forcedBackup)
|
||||
{
|
||||
if (m_rootPart.PhysActor != null &&
|
||||
(!m_rootPart.PhysActor.IsPhysical))
|
||||
{
|
||||
if (m_rootPart.PhysActor.Position != m_rootPart.GroupPosition)
|
||||
{
|
||||
m_rootPart.PhysActor.Position = m_rootPart.GroupPosition;
|
||||
m_rootPart.PhysActor.Orientation = m_rootPart.RotationOffset;
|
||||
m_scene.PhysicsScene.AddPhysicsActorTaint(m_rootPart.PhysActor);
|
||||
}
|
||||
}
|
||||
// m_log.DebugFormat(
|
||||
// "[SCENE]: Storing {0}, {1} in {2}",
|
||||
// Name, UUID, m_scene.RegionInfo.RegionName);
|
||||
|
||||
Reference in New Issue
Block a user