diff options
author | UbitUmarov | 2018-01-15 16:23:19 +0000 |
---|---|---|
committer | UbitUmarov | 2018-01-15 16:23:19 +0000 |
commit | c92ba1cc04c36d46b3569c06d8339cf897af65cc (patch) | |
tree | 88fadaf244e29d229bc166c1b0ac031843b15a50 /OpenSim/Region/PhysicsModules | |
parent | update PrimMesher to a newer version from dahlia (thx dahlia), targeted .net4.6 (diff) | |
download | opensim-SC-c92ba1cc04c36d46b3569c06d8339cf897af65cc.zip opensim-SC-c92ba1cc04c36d46b3569c06d8339cf897af65cc.tar.gz opensim-SC-c92ba1cc04c36d46b3569c06d8339cf897af65cc.tar.bz2 opensim-SC-c92ba1cc04c36d46b3569c06d8339cf897af65cc.tar.xz |
shut up some pesty warnings
Diffstat (limited to 'OpenSim/Region/PhysicsModules')
4 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Region/PhysicsModules/BasicPhysics/BasicPhysicsScene.cs b/OpenSim/Region/PhysicsModules/BasicPhysics/BasicPhysicsScene.cs index 2a1ae45..5ce1515 100644 --- a/OpenSim/Region/PhysicsModules/BasicPhysics/BasicPhysicsScene.cs +++ b/OpenSim/Region/PhysicsModules/BasicPhysics/BasicPhysicsScene.cs | |||
@@ -163,7 +163,7 @@ namespace OpenSim.Region.PhysicsModule.BasicPhysics | |||
163 | { | 163 | { |
164 | // Console.WriteLine("Simulating"); | 164 | // Console.WriteLine("Simulating"); |
165 | 165 | ||
166 | float fps = 0; | 166 | float fps = 1.0f / timeStep; |
167 | for (int i = 0; i < _actors.Count; ++i) | 167 | for (int i = 0; i < _actors.Count; ++i) |
168 | { | 168 | { |
169 | BasicActor actor = _actors[i]; | 169 | BasicActor actor = _actors[i]; |
@@ -226,7 +226,7 @@ namespace OpenSim.Region.PhysicsModule.BasicPhysics | |||
226 | actor.Velocity = actorVelocity; | 226 | actor.Velocity = actorVelocity; |
227 | } | 227 | } |
228 | 228 | ||
229 | return 1.0f; | 229 | return fps; |
230 | } | 230 | } |
231 | 231 | ||
232 | public override void GetResults() | 232 | public override void GetResults() |
diff --git a/OpenSim/Region/PhysicsModules/BulletS/BSCharacter.cs b/OpenSim/Region/PhysicsModules/BulletS/BSCharacter.cs index d182c34..2ca7dbc 100644 --- a/OpenSim/Region/PhysicsModules/BulletS/BSCharacter.cs +++ b/OpenSim/Region/PhysicsModules/BulletS/BSCharacter.cs | |||
@@ -92,6 +92,7 @@ public sealed class BSCharacter : BSPhysObject | |||
92 | Density = BSParam.AvatarDensity; | 92 | Density = BSParam.AvatarDensity; |
93 | _isPhysical = true; | 93 | _isPhysical = true; |
94 | 94 | ||
95 | _footOffset = footOffset; | ||
95 | // Adjustments for zero X and Y made in Size() | 96 | // Adjustments for zero X and Y made in Size() |
96 | // This also computes avatar scale, volume, and mass | 97 | // This also computes avatar scale, volume, and mass |
97 | SetAvatarSize(size, footOffset, true /* initializing */); | 98 | SetAvatarSize(size, footOffset, true /* initializing */); |
diff --git a/OpenSim/Region/PhysicsModules/BulletS/Tests/Raycast.cs b/OpenSim/Region/PhysicsModules/BulletS/Tests/Raycast.cs index bfa95c1..a6f587e 100755 --- a/OpenSim/Region/PhysicsModules/BulletS/Tests/Raycast.cs +++ b/OpenSim/Region/PhysicsModules/BulletS/Tests/Raycast.cs | |||
@@ -51,7 +51,7 @@ namespace OpenSim.Region.PhysicsModule.BulletS.Tests | |||
51 | BSScene _physicsScene { get; set; } | 51 | BSScene _physicsScene { get; set; } |
52 | BSPrim _targetSphere { get; set; } | 52 | BSPrim _targetSphere { get; set; } |
53 | Vector3 _targetSpherePosition { get; set; } | 53 | Vector3 _targetSpherePosition { get; set; } |
54 | float _simulationTimeStep = 0.089f; | 54 | // float _simulationTimeStep = 0.089f; |
55 | 55 | ||
56 | uint _targetLocalID = 123; | 56 | uint _targetLocalID = 123; |
57 | 57 | ||
diff --git a/OpenSim/Region/PhysicsModules/ubOdeMeshing/Meshmerizer.cs b/OpenSim/Region/PhysicsModules/ubOdeMeshing/Meshmerizer.cs index 032d4ed..451345f 100644 --- a/OpenSim/Region/PhysicsModules/ubOdeMeshing/Meshmerizer.cs +++ b/OpenSim/Region/PhysicsModules/ubOdeMeshing/Meshmerizer.cs | |||
@@ -340,7 +340,7 @@ namespace OpenSim.Region.PhysicsModule.ubODEMeshing | |||
340 | faces = new List<Face>(); | 340 | faces = new List<Face>(); |
341 | OSD meshOsd = null; | 341 | OSD meshOsd = null; |
342 | 342 | ||
343 | if (primShape.SculptData == null || primShape.SculptData.Length <= 0) | 343 | if (primShape.SculptData.Length <= 0) |
344 | { | 344 | { |
345 | // m_log.InfoFormat("[MESH]: asset data for {0} is zero length", primName); | 345 | // m_log.InfoFormat("[MESH]: asset data for {0} is zero length", primName); |
346 | return false; | 346 | return false; |
@@ -363,7 +363,6 @@ namespace OpenSim.Region.PhysicsModule.ubODEMeshing | |||
363 | catch (Exception e) | 363 | catch (Exception e) |
364 | { | 364 | { |
365 | m_log.Error("[MESH]: Exception deserializing mesh asset header:" + e.ToString()); | 365 | m_log.Error("[MESH]: Exception deserializing mesh asset header:" + e.ToString()); |
366 | return false; | ||
367 | } | 366 | } |
368 | 367 | ||
369 | start = data.Position; | 368 | start = data.Position; |
@@ -1383,7 +1382,7 @@ namespace OpenSim.Region.PhysicsModule.ubODEMeshing | |||
1383 | { | 1382 | { |
1384 | File.Delete(filename); | 1383 | File.Delete(filename); |
1385 | } | 1384 | } |
1386 | catch (IOException e) | 1385 | catch (IOException) |
1387 | { | 1386 | { |
1388 | m_log.ErrorFormat( | 1387 | m_log.ErrorFormat( |
1389 | "[MESH CACHE]: Failed to delete file {0}",filename); | 1388 | "[MESH CACHE]: Failed to delete file {0}",filename); |