mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
OpenSim tests do not always create an EventManager so calls to trigger events during tests must check for null EventManager
This commit is contained in:
@@ -2729,7 +2729,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (ParentGroup == null)
|
||||
return;
|
||||
|
||||
ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this);
|
||||
// When running OpenSim tests, EventManager can be null. Maybe tests should create an EventManager.
|
||||
if(ParentGroup.Scene.EventManager != null)
|
||||
ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this);
|
||||
|
||||
ParentGroup.QueueForUpdateCheck();
|
||||
|
||||
@@ -2763,7 +2765,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (ParentGroup == null)
|
||||
return;
|
||||
|
||||
ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this);
|
||||
// When running OpenSim tests, EventManager can be null. Maybe tests should create an EventManager.
|
||||
if (ParentGroup.Scene.EventManager != null)
|
||||
ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this);
|
||||
|
||||
// This was pulled from SceneViewer. Attachments always receive full updates.
|
||||
// I could not verify if this is a requirement but this maintains existing behavior
|
||||
|
||||
Reference in New Issue
Block a user