aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs
diff options
context:
space:
mode:
authorTeravus Ovares2007-11-12 12:43:01 +0000
committerTeravus Ovares2007-11-12 12:43:01 +0000
commitcdd903c1733ab813897e7bb8510d44d452238285 (patch)
treee5c5cbe2939d7e529e66c39314b85e97136f6808 /OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs
parentPatch from Mathias Soeken (thanks Mathias!) to take care of the color (diff)
downloadopensim-SC_OLD-cdd903c1733ab813897e7bb8510d44d452238285.zip
opensim-SC_OLD-cdd903c1733ab813897e7bb8510d44d452238285.tar.gz
opensim-SC_OLD-cdd903c1733ab813897e7bb8510d44d452238285.tar.bz2
opensim-SC_OLD-cdd903c1733ab813897e7bb8510d44d452238285.tar.xz
* Applied Gerhard's Meshing patch (Thanks! Gerhard)
* Addition of Gerhard's ZeroMesher. * Addition of meshing OpenSim.ini parameter * Some modifications to the Meshmerizer * Meshmerizer set to default meshing plugin because ZeroMesher needs a memory locking fix. We'll switch it back after the memory locking issue is resolved.
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())