*Fixed bug that caused failure when System.Console.Readline returns null (no stdin)
*Fixed bug that would crash the simulator if there were two physics/meshing engines loaded with the same name.0.6.0-stable
parent
c3292a9afa
commit
db151bcec7
|
@ -230,7 +230,14 @@ namespace OpenSim.Framework.Console
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return System.Console.ReadLine();
|
string line = System.Console.ReadLine();
|
||||||
|
while(line == null)
|
||||||
|
{
|
||||||
|
|
||||||
|
line = System.Console.ReadLine();
|
||||||
|
}
|
||||||
|
|
||||||
|
return line;
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -357,7 +364,8 @@ namespace OpenSim.Framework.Console
|
||||||
public void Prompt()
|
public void Prompt()
|
||||||
{
|
{
|
||||||
string tempstr = CmdPrompt(m_componentName + "# ");
|
string tempstr = CmdPrompt(m_componentName + "# ");
|
||||||
RunCommand(tempstr);
|
RunCommand(tempstr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RunCommand(string cmdline)
|
public void RunCommand(string cmdline)
|
||||||
|
|
|
@ -130,8 +130,11 @@ namespace OpenSim.Region.Physics.Manager
|
||||||
IPhysicsPlugin plug =
|
IPhysicsPlugin plug =
|
||||||
(IPhysicsPlugin) Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
|
(IPhysicsPlugin) Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
|
||||||
plug.Init();
|
plug.Init();
|
||||||
_PhysPlugins.Add(plug.GetName(), plug);
|
if(!_PhysPlugins.ContainsKey(plug.GetName()))
|
||||||
m_log.Info("[PHYSICS]: Added physics engine: " + plug.GetName());
|
{
|
||||||
|
_PhysPlugins.Add(plug.GetName(), plug);
|
||||||
|
m_log.Info("[PHYSICS]: Added physics engine: " + plug.GetName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Type meshTypeInterface = pluginType.GetInterface("IMeshingPlugin", true);
|
Type meshTypeInterface = pluginType.GetInterface("IMeshingPlugin", true);
|
||||||
|
@ -140,8 +143,11 @@ namespace OpenSim.Region.Physics.Manager
|
||||||
{
|
{
|
||||||
IMeshingPlugin plug =
|
IMeshingPlugin plug =
|
||||||
(IMeshingPlugin) Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
|
(IMeshingPlugin) Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
|
||||||
_MeshPlugins.Add(plug.GetName(), plug);
|
if(!_MeshPlugins.ContainsKey(plug.GetName()))
|
||||||
m_log.Info("[PHYSICS]: Added meshing engine: " + plug.GetName());
|
{
|
||||||
|
_MeshPlugins.Add(plug.GetName(), plug);
|
||||||
|
m_log.Info("[PHYSICS]: Added meshing engine: " + plug.GetName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
physTypeInterface = null;
|
physTypeInterface = null;
|
||||||
|
|
Loading…
Reference in New Issue