Add bool to TriggerSceneObjectPartUpdated where full = true indicates a full update. There should be a better way to indicate which properties have changed that is non LLUDP-centric

connector_plugin
Dan Lake 2012-10-05 17:32:07 -07:00
parent 6f220a8679
commit 91ca3117cb
2 changed files with 5 additions and 5 deletions

View File

@ -913,7 +913,7 @@ namespace OpenSim.Region.Framework.Scenes
public event SceneObjectPartCopyDelegate OnSceneObjectPartCopy; public event SceneObjectPartCopyDelegate OnSceneObjectPartCopy;
public delegate void SceneObjectPartCopyDelegate(SceneObjectPart copy, SceneObjectPart original, bool userExposed); public delegate void SceneObjectPartCopyDelegate(SceneObjectPart copy, SceneObjectPart original, bool userExposed);
public delegate void SceneObjectPartUpdated(SceneObjectPart sop); public delegate void SceneObjectPartUpdated(SceneObjectPart sop, bool full);
public event SceneObjectPartUpdated OnSceneObjectPartUpdated; public event SceneObjectPartUpdated OnSceneObjectPartUpdated;
public delegate void ScenePresenceUpdated(ScenePresence sp); public delegate void ScenePresenceUpdated(ScenePresence sp);
@ -2837,7 +2837,7 @@ namespace OpenSim.Region.Framework.Scenes
} }
} }
public void TriggerSceneObjectPartUpdated(SceneObjectPart sop) public void TriggerSceneObjectPartUpdated(SceneObjectPart sop, bool full)
{ {
SceneObjectPartUpdated handler = OnSceneObjectPartUpdated; SceneObjectPartUpdated handler = OnSceneObjectPartUpdated;
if (handler != null) if (handler != null)
@ -2846,7 +2846,7 @@ namespace OpenSim.Region.Framework.Scenes
{ {
try try
{ {
d(sop); d(sop, full);
} }
catch (Exception e) catch (Exception e)
{ {

View File

@ -2465,7 +2465,7 @@ namespace OpenSim.Region.Framework.Scenes
// UUID, Name, TimeStampFull); // UUID, Name, TimeStampFull);
if (ParentGroup.Scene != null) if (ParentGroup.Scene != null)
ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this); ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this, true);
} }
/// <summary> /// <summary>
@ -2499,7 +2499,7 @@ namespace OpenSim.Region.Framework.Scenes
} }
if (ParentGroup.Scene != null) if (ParentGroup.Scene != null)
ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this); ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this, false);
} }
public void ScriptSetPhysicsStatus(bool UsePhysics) public void ScriptSetPhysicsStatus(bool UsePhysics)