diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 04be9fc..da7ec44 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -2489,7 +2489,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2489 | //m_log.Debug("prev: " + prevflag.ToString() + " curr: " + Flags.ToString()); | 2489 | //m_log.Debug("prev: " + prevflag.ToString() + " curr: " + Flags.ToString()); |
2490 | //ScheduleFullUpdate(); | 2490 | //ScheduleFullUpdate(); |
2491 | } | 2491 | } |
2492 | 2492 | ||
2493 | public void RemoveScriptEvents(UUID scriptid) | 2493 | public void RemoveScriptEvents(UUID scriptid) |
2494 | { | 2494 | { |
2495 | lock (m_scriptEvents) | 2495 | lock (m_scriptEvents) |
@@ -2543,6 +2543,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
2543 | /// </summary> | 2543 | /// </summary> |
2544 | public void ScheduleFullUpdate() | 2544 | public void ScheduleFullUpdate() |
2545 | { | 2545 | { |
2546 | // m_log.DebugFormat("[SCENE OBJECT PART]: Scheduling full update for {0} {1}", Name, LocalId); | ||
2547 | |||
2546 | if (m_parentGroup != null) | 2548 | if (m_parentGroup != null) |
2547 | { | 2549 | { |
2548 | m_parentGroup.QueueForUpdateCheck(); | 2550 | m_parentGroup.QueueForUpdateCheck(); |
@@ -4069,6 +4071,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
4069 | 4071 | ||
4070 | if (m_parentGroup == null) | 4072 | if (m_parentGroup == null) |
4071 | { | 4073 | { |
4074 | // m_log.DebugFormat( | ||
4075 | // "[SCENE OBJECT PART]: Scheduling part {0} {1} for full update in aggregateScriptEvents() since m_parentGroup == null", Name, LocalId); | ||
4072 | ScheduleFullUpdate(); | 4076 | ScheduleFullUpdate(); |
4073 | return; | 4077 | return; |
4074 | } | 4078 | } |
@@ -4085,9 +4089,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
4085 | LocalFlags=(PrimFlags)objectflagupdate; | 4089 | LocalFlags=(PrimFlags)objectflagupdate; |
4086 | 4090 | ||
4087 | if (m_parentGroup != null && m_parentGroup.RootPart == this) | 4091 | if (m_parentGroup != null && m_parentGroup.RootPart == this) |
4092 | { | ||
4088 | m_parentGroup.aggregateScriptEvents(); | 4093 | m_parentGroup.aggregateScriptEvents(); |
4094 | } | ||
4089 | else | 4095 | else |
4096 | { | ||
4097 | // m_log.DebugFormat( | ||
4098 | // "[SCENE OBJECT PART]: Scheduling part {0} {1} for full update in aggregateScriptEvents()", Name, LocalId); | ||
4090 | ScheduleFullUpdate(); | 4099 | ScheduleFullUpdate(); |
4100 | } | ||
4091 | } | 4101 | } |
4092 | 4102 | ||
4093 | public int registerTargetWaypoint(Vector3 target, float tolerance) | 4103 | public int registerTargetWaypoint(Vector3 target, float tolerance) |