From 3b0db66b92a9e497d965d2a26c9d6de643612b63 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 15 Dec 2008 18:39:54 +0000 Subject: * Apply http://opensimulator.org/mantis/view.php?id=2775 with small tweaks * This pushes an identifier for the OpenSim scene to the physics scene. This allows log messages from the physics scene to identify which OpenSim scene they relate to. * Thanks Gerhard --- OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs') diff --git a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs index 4f1afdd..8f5ffd8 100644 --- a/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs +++ b/OpenSim/Region/Physics/BulletXPlugin/BulletXPlugin.cs @@ -212,11 +212,11 @@ namespace OpenSim.Region.Physics.BulletXPlugin return true; } - public PhysicsScene GetScene() + public PhysicsScene GetScene(string sceneIdentifier) { if (_mScene == null) { - _mScene = new BulletXScene(); + _mScene = new BulletXScene(sceneIdentifier); } return (_mScene); } @@ -493,6 +493,12 @@ namespace OpenSim.Region.Physics.BulletXPlugin public IMesher mesher; // private IConfigSource m_config; + String identifier; + + public BulletXScene(String sceneIdentifier) + { + identifier = sceneIdentifier; + } public static float Gravity { -- cgit v1.1