aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs')
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs b/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs
index 47c8ae0..694a845 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs
@@ -88,6 +88,15 @@ namespace OpenSim.Region.Physics.Manager
88 88
89 public void LoadPlugins() 89 public void LoadPlugins()
90 { 90 {
91
92 // Load "plugins", that are hard coded and not existing in form of an external lib
93 IMeshingPlugin plugHard;
94 plugHard = new ZeroMesherPlugin();
95 _MeshPlugins.Add(plugHard.GetName(), plugHard);
96 MainLog.Instance.Verbose("PHYSICS", "Added meshing engine: " + plugHard.GetName());
97
98 // And now walk all assemblies (DLLs effectively) and see if they are home
99 // of a plugin that is of interest for us
91 string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Physics"); 100 string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Physics");
92 string[] pluginFiles = Directory.GetFiles(path, "*.dll"); 101 string[] pluginFiles = Directory.GetFiles(path, "*.dll");
93 102
@@ -100,6 +109,7 @@ namespace OpenSim.Region.Physics.Manager
100 109
101 private void AddPlugin(string FileName) 110 private void AddPlugin(string FileName)
102 { 111 {
112
103 Assembly pluginAssembly = Assembly.LoadFrom(FileName); 113 Assembly pluginAssembly = Assembly.LoadFrom(FileName);
104 114
105 foreach (Type pluginType in pluginAssembly.GetTypes()) 115 foreach (Type pluginType in pluginAssembly.GetTypes())