diff options
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r-- | OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs b/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs index 2fa2c14..badcc04 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs | |||
@@ -48,7 +48,6 @@ namespace OpenSim.Region.Physics.Manager | |||
48 | 48 | ||
49 | public PhysicsScene GetPhysicsScene(string physEngineName, string meshEngineName) | 49 | public PhysicsScene GetPhysicsScene(string physEngineName, string meshEngineName) |
50 | { | 50 | { |
51 | |||
52 | if (String.IsNullOrEmpty(physEngineName)) | 51 | if (String.IsNullOrEmpty(physEngineName)) |
53 | { | 52 | { |
54 | return PhysicsScene.Null; | 53 | return PhysicsScene.Null; |
@@ -59,7 +58,6 @@ namespace OpenSim.Region.Physics.Manager | |||
59 | return PhysicsScene.Null; | 58 | return PhysicsScene.Null; |
60 | } | 59 | } |
61 | 60 | ||
62 | |||
63 | IMesher meshEngine = null; | 61 | IMesher meshEngine = null; |
64 | if (_MeshPlugins.ContainsKey(meshEngineName)) | 62 | if (_MeshPlugins.ContainsKey(meshEngineName)) |
65 | { | 63 | { |
@@ -88,7 +86,6 @@ namespace OpenSim.Region.Physics.Manager | |||
88 | 86 | ||
89 | public void LoadPlugins() | 87 | public void LoadPlugins() |
90 | { | 88 | { |
91 | |||
92 | // Load "plugins", that are hard coded and not existing in form of an external lib | 89 | // Load "plugins", that are hard coded and not existing in form of an external lib |
93 | IMeshingPlugin plugHard; | 90 | IMeshingPlugin plugHard; |
94 | plugHard = new ZeroMesherPlugin(); | 91 | plugHard = new ZeroMesherPlugin(); |
@@ -100,7 +97,6 @@ namespace OpenSim.Region.Physics.Manager | |||
100 | string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Physics"); | 97 | string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Physics"); |
101 | string[] pluginFiles = Directory.GetFiles(path, "*.dll"); | 98 | string[] pluginFiles = Directory.GetFiles(path, "*.dll"); |
102 | 99 | ||
103 | |||
104 | for (int i = 0; i < pluginFiles.Length; i++) | 100 | for (int i = 0; i < pluginFiles.Length; i++) |
105 | { | 101 | { |
106 | AddPlugin(pluginFiles[i]); | 102 | AddPlugin(pluginFiles[i]); |
@@ -109,7 +105,6 @@ namespace OpenSim.Region.Physics.Manager | |||
109 | 105 | ||
110 | private void AddPlugin(string FileName) | 106 | private void AddPlugin(string FileName) |
111 | { | 107 | { |
112 | |||
113 | Assembly pluginAssembly = Assembly.LoadFrom(FileName); | 108 | Assembly pluginAssembly = Assembly.LoadFrom(FileName); |
114 | 109 | ||
115 | foreach (Type pluginType in pluginAssembly.GetTypes()) | 110 | foreach (Type pluginType in pluginAssembly.GetTypes()) |
@@ -160,7 +155,6 @@ namespace OpenSim.Region.Physics.Manager | |||
160 | MainLog.Instance.Verbose("PHYSICS", message); | 155 | MainLog.Instance.Verbose("PHYSICS", message); |
161 | } | 156 | } |
162 | } | 157 | } |
163 | |||
164 | //--- | 158 | //--- |
165 | } | 159 | } |
166 | 160 | ||
@@ -177,5 +171,4 @@ namespace OpenSim.Region.Physics.Manager | |||
177 | string GetName(); | 171 | string GetName(); |
178 | IMesher GetMesher(); | 172 | IMesher GetMesher(); |
179 | } | 173 | } |
180 | |||
181 | } | 174 | } |