From 3035f5cb642cbda6a332d64c673782a85e91bb0c Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Fri, 25 Jul 2008 20:29:37 +0000 Subject: Re-enables testing for config option mesh_sculpted_prim which was inadvertently disabled in a prior modification (oops) :) --- OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'OpenSim/Region/Physics/OdePlugin/ODEPrim.cs') diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index c1e54da..c01626a 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs @@ -759,7 +759,7 @@ namespace OpenSim.Region.Physics.OdePlugin if (m_taintselected != m_isSelected) changeSelectedStatus(timestep); - if (!m_taintVelocity.IsIdentical(PhysicsVector.Zero,0)) + if (!m_taintVelocity.IsIdentical(PhysicsVector.Zero, 0.001f)) changevelocity(timestep); if (m_taintparent != _parent) @@ -918,18 +918,18 @@ namespace OpenSim.Region.Physics.OdePlugin m_targetSpace = targetspace; - //if (_mesh == null) - //{ - // if (_parent_scene.needsMeshing(_pbs)) - // { - // // Don't need to re-enable body.. it's done in SetMesh - // _mesh = _parent_scene.mesher.CreateMesh(m_primName, _pbs, _size, _parent_scene.meshSculptLOD, IsPhysical); - // // createmesh returns null when it's a shape that isn't a cube. - // } - //} + if (_mesh == null) + { + if (_parent_scene.needsMeshing(_pbs)) + { + // Don't need to re-enable body.. it's done in SetMesh + _mesh = _parent_scene.mesher.CreateMesh(m_primName, _pbs, _size, _parent_scene.meshSculptLOD, IsPhysical); + // createmesh returns null when it's a shape that isn't a cube. + } + } - if (_mesh == null ) - _mesh = _parent_scene.mesher.CreateMesh(m_primName, _pbs, _size, _parent_scene.meshSculptLOD, IsPhysical); + //if (_mesh == null ) + // _mesh = _parent_scene.mesher.CreateMesh(m_primName, _pbs, _size, _parent_scene.meshSculptLOD, IsPhysical); lock (OdeScene.OdeLock) @@ -1323,7 +1323,7 @@ namespace OpenSim.Region.Physics.OdePlugin // we don't need to do space calculation because the client sends a position update also. // Construction of new prim - //if (_parent_scene.needsMeshing(_pbs)) + if (_parent_scene.needsMeshing(_pbs)) { float meshlod = _parent_scene.meshSculptLOD; @@ -1609,7 +1609,7 @@ namespace OpenSim.Region.Physics.OdePlugin if (_size.Z <= 0) _size.Z = 0.01f; // Construction of new prim - //if (_parent_scene.needsMeshing(_pbs)) + if (_parent_scene.needsMeshing(_pbs)) { // Don't need to re-enable body.. it's done in SetMesh float meshlod = _parent_scene.meshSculptLOD; -- cgit v1.1