diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSScene.cs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs b/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs index 0e257b6..117086a 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs | |||
@@ -73,7 +73,7 @@ public class BSScene : PhysicsScene, IPhysicsParameters | |||
73 | private static readonly ILog m_log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 73 | private static readonly ILog m_log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); |
74 | private static readonly string LogHeader = "[BULLETS SCENE]"; | 74 | private static readonly string LogHeader = "[BULLETS SCENE]"; |
75 | 75 | ||
76 | public void DebugLog(string mm, params Object[] xx) { if (shouldDebugLog) m_log.DebugFormat(mm, xx); } | 76 | public void DebugLog(string mm, params Object[] xx) { if (ShouldDebugLog) m_log.DebugFormat(mm, xx); } |
77 | 77 | ||
78 | public string BulletSimVersion = "?"; | 78 | public string BulletSimVersion = "?"; |
79 | 79 | ||
@@ -169,7 +169,7 @@ public class BSScene : PhysicsScene, IPhysicsParameters | |||
169 | ConfigurationParameters[] m_params; | 169 | ConfigurationParameters[] m_params; |
170 | GCHandle m_paramsHandle; | 170 | GCHandle m_paramsHandle; |
171 | 171 | ||
172 | public bool shouldDebugLog { get; private set; } | 172 | public bool ShouldDebugLog { get; private set; } |
173 | 173 | ||
174 | private BulletSimAPI.DebugLogCallback m_DebugLogCallbackHandle; | 174 | private BulletSimAPI.DebugLogCallback m_DebugLogCallbackHandle; |
175 | 175 | ||
@@ -812,12 +812,12 @@ public class BSScene : PhysicsScene, IPhysicsParameters | |||
812 | 812 | ||
813 | private struct ParameterDefn | 813 | private struct ParameterDefn |
814 | { | 814 | { |
815 | public string name; | 815 | public string name; // string name of the parameter |
816 | public string desc; | 816 | public string desc; // a short description of what the parameter means |
817 | public float defaultValue; | 817 | public float defaultValue; // default value if not specified anywhere else |
818 | public ParamUser userParam; | 818 | public ParamUser userParam; // get the value from the configuration file |
819 | public ParamGet getter; | 819 | public ParamGet getter; // return the current value stored for this parameter |
820 | public ParamSet setter; | 820 | public ParamSet setter; // set the current value for this parameter |
821 | public ParameterDefn(string n, string d, float v, ParamUser u, ParamGet g, ParamSet s) | 821 | public ParameterDefn(string n, string d, float v, ParamUser u, ParamGet g, ParamSet s) |
822 | { | 822 | { |
823 | name = n; | 823 | name = n; |
@@ -834,7 +834,7 @@ public class BSScene : PhysicsScene, IPhysicsParameters | |||
834 | // To add a new externally referencable/settable parameter, add the paramter storage | 834 | // To add a new externally referencable/settable parameter, add the paramter storage |
835 | // location somewhere in the program and make an entry in this table with the | 835 | // location somewhere in the program and make an entry in this table with the |
836 | // getters and setters. | 836 | // getters and setters. |
837 | // To add a new variable, it is easiest to find an existing definition and copy it. | 837 | // It is easiest to find an existing definition and copy it. |
838 | // Parameter values are floats. Booleans are converted to a floating value. | 838 | // Parameter values are floats. Booleans are converted to a floating value. |
839 | // | 839 | // |
840 | // A ParameterDefn() takes the following parameters: | 840 | // A ParameterDefn() takes the following parameters: |
@@ -870,7 +870,7 @@ public class BSScene : PhysicsScene, IPhysicsParameters | |||
870 | (s) => { return (float)s.m_meshLOD; }, | 870 | (s) => { return (float)s.m_meshLOD; }, |
871 | (s,p,l,v) => { s.m_meshLOD = (int)v; } ), | 871 | (s,p,l,v) => { s.m_meshLOD = (int)v; } ), |
872 | new ParameterDefn("SculptLOD", "Level of detail to render sculpties (32, 16, 8 or 4. 32=most detailed)", | 872 | new ParameterDefn("SculptLOD", "Level of detail to render sculpties (32, 16, 8 or 4. 32=most detailed)", |
873 | 32, | 873 | 32f, |
874 | (s,cf,p,v) => { s.m_sculptLOD = cf.GetInt(p, (int)v); }, | 874 | (s,cf,p,v) => { s.m_sculptLOD = cf.GetInt(p, (int)v); }, |
875 | (s) => { return (float)s.m_sculptLOD; }, | 875 | (s) => { return (float)s.m_sculptLOD; }, |
876 | (s,p,l,v) => { s.m_sculptLOD = (int)v; } ), | 876 | (s,p,l,v) => { s.m_sculptLOD = (int)v; } ), |
@@ -1106,9 +1106,9 @@ public class BSScene : PhysicsScene, IPhysicsParameters | |||
1106 | (s,p,l,v) => { s.m_detailedStatsStep = (int)v; } ), | 1106 | (s,p,l,v) => { s.m_detailedStatsStep = (int)v; } ), |
1107 | new ParameterDefn("ShouldDebugLog", "Enables detailed DEBUG log statements", | 1107 | new ParameterDefn("ShouldDebugLog", "Enables detailed DEBUG log statements", |
1108 | ConfigurationParameters.numericFalse, | 1108 | ConfigurationParameters.numericFalse, |
1109 | (s,cf,p,v) => { s.shouldDebugLog = cf.GetBoolean(p, s.BoolNumeric(v)); }, | 1109 | (s,cf,p,v) => { s.ShouldDebugLog = cf.GetBoolean(p, s.BoolNumeric(v)); }, |
1110 | (s) => { return s.NumericBool(s.shouldDebugLog); }, | 1110 | (s) => { return s.NumericBool(s.ShouldDebugLog); }, |
1111 | (s,p,l,v) => { s.shouldDebugLog = s.BoolNumeric(v); } ), | 1111 | (s,p,l,v) => { s.ShouldDebugLog = s.BoolNumeric(v); } ), |
1112 | 1112 | ||
1113 | }; | 1113 | }; |
1114 | 1114 | ||