diff options
Diffstat (limited to 'OpenSim/Region/PhysicsModules/UbitOde/ODEModule.cs')
-rw-r--r-- | OpenSim/Region/PhysicsModules/UbitOde/ODEModule.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/PhysicsModules/UbitOde/ODEModule.cs b/OpenSim/Region/PhysicsModules/UbitOde/ODEModule.cs index 7c3c688..8be7c7c 100644 --- a/OpenSim/Region/PhysicsModules/UbitOde/ODEModule.cs +++ b/OpenSim/Region/PhysicsModules/UbitOde/ODEModule.cs | |||
@@ -78,10 +78,19 @@ namespace OpenSim.Region.PhysicsModule.UbitOde | |||
78 | 78 | ||
79 | public void RemoveRegion(Scene scene) | 79 | public void RemoveRegion(Scene scene) |
80 | { | 80 | { |
81 | if (!m_Enabled || m_scene == null) | ||
82 | return; | ||
83 | |||
84 | m_scene.Dispose(); | ||
85 | m_scene = null; | ||
81 | } | 86 | } |
82 | 87 | ||
83 | public void RegionLoaded(Scene scene) | 88 | public void RegionLoaded(Scene scene) |
84 | { | 89 | { |
90 | if (!m_Enabled || m_scene == null) | ||
91 | return; | ||
92 | |||
93 | m_scene.RegionLoaded(); | ||
85 | } | 94 | } |
86 | #endregion | 95 | #endregion |
87 | } | 96 | } |