aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs4
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs10
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs6
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs14
4 files changed, 12 insertions, 22 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 6d2ae5a..ef97dfc 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1319,6 +1319,7 @@ namespace OpenSim.Region.Framework.Scenes
1319 if (m_frame % m_update_presences == 0) 1319 if (m_frame % m_update_presences == 0)
1320 m_sceneGraph.UpdatePresences(); 1320 m_sceneGraph.UpdatePresences();
1321 1321
1322 // Coarse locations relate to positions of green dots on the mini-map (on a SecondLife client)
1322 if (m_frame % m_update_coarse_locations == 0) 1323 if (m_frame % m_update_coarse_locations == 0)
1323 { 1324 {
1324 List<Vector3> coarseLocations; 1325 List<Vector3> coarseLocations;
@@ -1336,9 +1337,12 @@ namespace OpenSim.Region.Framework.Scenes
1336 m_sceneGraph.UpdatePreparePhysics(); 1337 m_sceneGraph.UpdatePreparePhysics();
1337 physicsMS2 = Util.EnvironmentTickCountSubtract(tmpPhysicsMS2); 1338 physicsMS2 = Util.EnvironmentTickCountSubtract(tmpPhysicsMS2);
1338 1339
1340 // Apply any pending avatar force input to the avatar's velocity
1339 if (m_frame % m_update_entitymovement == 0) 1341 if (m_frame % m_update_entitymovement == 0)
1340 m_sceneGraph.UpdateScenePresenceMovement(); 1342 m_sceneGraph.UpdateScenePresenceMovement();
1341 1343
1344 // Perform the main physics update. This will do the actual work of moving objects and avatars according to their
1345 // velocity
1342 int tmpPhysicsMS = Util.EnvironmentTickCount(); 1346 int tmpPhysicsMS = Util.EnvironmentTickCount();
1343 if (m_frame % m_update_physics == 0) 1347 if (m_frame % m_update_physics == 0)
1344 { 1348 {
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index 5ac8ff5..85ff32e 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -522,16 +522,6 @@ namespace OpenSim.Region.Framework.Scenes
522 m_parentScene.AttachmentsModule.DetachSingleAttachmentToGround(group.UUID, remoteClient); 522 m_parentScene.AttachmentsModule.DetachSingleAttachmentToGround(group.UUID, remoteClient);
523 } 523 }
524 524
525 protected internal void DetachObject(uint objectLocalID, IClientAPI remoteClient)
526 {
527 SceneObjectGroup group = GetGroupByPrim(objectLocalID);
528 if (group != null)
529 {
530 //group.DetachToGround();
531 m_parentScene.AttachmentsModule.ShowDetachInUserInventory(group.GetFromItemID(), remoteClient);
532 }
533 }
534
535 protected internal void HandleUndo(IClientAPI remoteClient, UUID primId) 525 protected internal void HandleUndo(IClientAPI remoteClient, UUID primId)
536 { 526 {
537 if (primId != UUID.Zero) 527 if (primId != UUID.Zero)
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 2c1f207..dc6509d 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -1430,9 +1430,9 @@ namespace OpenSim.Region.Framework.Scenes
1430 // don't backup while it's selected or you're asking for changes mid stream. 1430 // don't backup while it's selected or you're asking for changes mid stream.
1431 if (isTimeToPersist() || forcedBackup) 1431 if (isTimeToPersist() || forcedBackup)
1432 { 1432 {
1433 m_log.DebugFormat( 1433// m_log.DebugFormat(
1434 "[SCENE]: Storing {0}, {1} in {2}", 1434// "[SCENE]: Storing {0}, {1} in {2}",
1435 Name, UUID, m_scene.RegionInfo.RegionName); 1435// Name, UUID, m_scene.RegionInfo.RegionName);
1436 1436
1437 SceneObjectGroup backup_group = Copy(false); 1437 SceneObjectGroup backup_group = Copy(false);
1438 backup_group.RootPart.Velocity = RootPart.Velocity; 1438 backup_group.RootPart.Velocity = RootPart.Velocity;
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 177cf1e..a77f38c 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1522,6 +1522,8 @@ namespace OpenSim.Region.Framework.Scenes
1522 } 1522 }
1523 } 1523 }
1524 1524
1525 // If the agent update does move the avatar, then calculate the force ready for the velocity update,
1526 // which occurs later in the main scene loop
1525 if (update_movementflag || (update_rotation && DCFlagKeyPressed)) 1527 if (update_movementflag || (update_rotation && DCFlagKeyPressed))
1526 { 1528 {
1527 // m_log.DebugFormat("{0} {1}", update_movementflag, (update_rotation && DCFlagKeyPressed)); 1529 // m_log.DebugFormat("{0} {1}", update_movementflag, (update_rotation && DCFlagKeyPressed));
@@ -3727,8 +3729,8 @@ namespace OpenSim.Region.Framework.Scenes
3727 return; 3729 return;
3728 3730
3729 UUID itemID = m_appearance.GetAttachedItem(p); 3731 UUID itemID = m_appearance.GetAttachedItem(p);
3730 UUID assetID = m_appearance.GetAttachedAsset(p);
3731 3732
3733 //UUID assetID = m_appearance.GetAttachedAsset(p);
3732 // For some reason assetIDs are being written as Zero's in the DB -- need to track tat down 3734 // For some reason assetIDs are being written as Zero's in the DB -- need to track tat down
3733 // But they're not used anyway, the item is being looked up for now, so let's proceed. 3735 // But they're not used anyway, the item is being looked up for now, so let's proceed.
3734 //if (UUID.Zero == assetID) 3736 //if (UUID.Zero == assetID)
@@ -3739,17 +3741,11 @@ namespace OpenSim.Region.Framework.Scenes
3739 3741
3740 try 3742 try
3741 { 3743 {
3742 // Rez from inventory 3744 m_scene.AttachmentsModule.RezSingleAttachmentFromInventory(ControllingClient, itemID, (uint)p);
3743 UUID asset
3744 = m_scene.AttachmentsModule.RezSingleAttachmentFromInventory(ControllingClient, itemID, (uint)p);
3745
3746 m_log.InfoFormat(
3747 "[ATTACHMENT]: Rezzed attachment in point {0} from item {1} and asset {2} ({3})",
3748 p, itemID, assetID, asset);
3749 } 3745 }
3750 catch (Exception e) 3746 catch (Exception e)
3751 { 3747 {
3752 m_log.ErrorFormat("[ATTACHMENT]: Unable to rez attachment: {0}", e.ToString()); 3748 m_log.ErrorFormat("[ATTACHMENT]: Unable to rez attachment: {0}{1}", e.Message, e.StackTrace);
3753 } 3749 }
3754 } 3750 }
3755 } 3751 }