diff options
author | UbitUmarov | 2015-09-09 17:55:46 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-09 17:55:46 +0100 |
commit | e1a8125b4fadc76baba73712843aee57edd2936f (patch) | |
tree | 571c7c77d387a889706c3a1a08ac3bcea0a31b12 /OpenSim/Region/PhysicsModules/UbitOde/ODEModule.cs | |
parent | split Module from its scene, so if not enabled there is no scene memory allo... (diff) | |
download | opensim-SC-e1a8125b4fadc76baba73712843aee57edd2936f.zip opensim-SC-e1a8125b4fadc76baba73712843aee57edd2936f.tar.gz opensim-SC-e1a8125b4fadc76baba73712843aee57edd2936f.tar.bz2 opensim-SC-e1a8125b4fadc76baba73712843aee57edd2936f.tar.xz |
found core hack to fix modules interdependencies RegionLoaded is not that obvius
Diffstat (limited to '')
-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 | } |