From 2bc8dcfdbd987ca4a47270c62b77a7eb9ac0f851 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 10 Jun 2011 02:27:45 +0100
Subject: minor: add method doc to make it clear that click action is fired
when the click action is changed, not when a prim is clicked
---
OpenSim/Region/Framework/Scenes/SceneGraph.cs | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Region')
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index cdb4e41..a078291 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -1504,7 +1504,7 @@ namespace OpenSim.Region.Framework.Scenes
}
///
- ///
+ /// Handle a prim description set request from a viewer.
///
///
///
@@ -1521,8 +1521,17 @@ namespace OpenSim.Region.Framework.Scenes
}
}
+ ///
+ /// Set a click action for the prim.
+ ///
+ ///
+ ///
+ ///
protected internal void PrimClickAction(IClientAPI remoteClient, uint primLocalID, string clickAction)
{
+// m_log.DebugFormat(
+// "[SCENEGRAPH]: User {0} set click action for {1} to {2}", remoteClient.Name, primLocalID, clickAction);
+
SceneObjectGroup group = GetGroupByPrim(primLocalID);
if (group != null)
{
--
cgit v1.1
From 387b228d68b579bf978c091d8873608e016d0c3d Mon Sep 17 00:00:00 2001
From: dahlia
Date: Fri, 10 Jun 2011 00:38:38 -0700
Subject: partial update for new mesh asset format - handle both old and new
formats for physics mesh
---
OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Region')
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
index f89b824..99b2d84 100644
--- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
+++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
@@ -303,7 +303,11 @@ namespace OpenSim.Region.Physics.Meshing
if (meshOsd is OSDMap)
{
OSDMap map = (OSDMap)meshOsd;
- OSDMap physicsParms = (OSDMap)map["physics_shape"];
+ OSDMap physicsParms = (OSDMap)map["physics_shape"]; // old asset format
+
+ if (physicsParms.Count == 0)
+ physicsParms = (OSDMap)map["physics_mesh"]; // new asset format
+
int physOffset = physicsParms["offset"].AsInteger() + (int)start;
int physSize = physicsParms["size"].AsInteger();
--
cgit v1.1