diff options
author | Dahlia Trimble | 2008-07-25 20:29:37 +0000 |
---|---|---|
committer | Dahlia Trimble | 2008-07-25 20:29:37 +0000 |
commit | 3035f5cb642cbda6a332d64c673782a85e91bb0c (patch) | |
tree | 5a9291d17253a27ef22b27f89d66aef4e710729f /OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | |
parent | * minor: just realized I managed to get the save xml/xml2 messages the wrong ... (diff) | |
download | opensim-SC_OLD-3035f5cb642cbda6a332d64c673782a85e91bb0c.zip opensim-SC_OLD-3035f5cb642cbda6a332d64c673782a85e91bb0c.tar.gz opensim-SC_OLD-3035f5cb642cbda6a332d64c673782a85e91bb0c.tar.bz2 opensim-SC_OLD-3035f5cb642cbda6a332d64c673782a85e91bb0c.tar.xz |
Re-enables testing for config option mesh_sculpted_prim which was inadvertently disabled in a prior modification (oops) :)
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/OdePlugin.cs')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index ec0e0ff..3f8aa26 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | |||
@@ -1174,16 +1174,17 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1174 | //switch (pbs.ProfileShape) | 1174 | //switch (pbs.ProfileShape) |
1175 | //{ | 1175 | //{ |
1176 | // case ProfileShape.Square: | 1176 | // case ProfileShape.Square: |
1177 | /// support simple box & hollow box now; later, more shapes | 1177 | // //support simple box & hollow box now; later, more shapes |
1178 | //if (needsMeshing(pbs)) | 1178 | // if (needsMeshing(pbs)) |
1179 | //{ | 1179 | // { |
1180 | // mesh = mesher.CreateMesh(primName, pbs, size, 32f, isPhysical); | 1180 | // mesh = mesher.CreateMesh(primName, pbs, size, 32f, isPhysical); |
1181 | //} | 1181 | // } |
1182 | 1182 | ||
1183 | // break; | 1183 | // break; |
1184 | //} | 1184 | //} |
1185 | 1185 | ||
1186 | mesh = mesher.CreateMesh(primName, pbs, size, 32f, isPhysical); | 1186 | if (needsMeshing(pbs)) |
1187 | mesh = mesher.CreateMesh(primName, pbs, size, 32f, isPhysical); | ||
1187 | 1188 | ||
1188 | result = AddPrim(primName, position, size, rotation, mesh, pbs, isPhysical); | 1189 | result = AddPrim(primName, position, size, rotation, mesh, pbs, isPhysical); |
1189 | 1190 | ||
@@ -1523,14 +1524,18 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1523 | /// </summary> | 1524 | /// </summary> |
1524 | /// <param name="pbs"></param> | 1525 | /// <param name="pbs"></param> |
1525 | /// <returns></returns> | 1526 | /// <returns></returns> |
1526 | //public bool needsMeshing(PrimitiveBaseShape pbs) | 1527 | public bool needsMeshing(PrimitiveBaseShape pbs) |
1527 | //{ | 1528 | { |
1529 | // most of this is redundant now as the mesher will return null if it cant mesh a prim | ||
1530 | // but we still need to check for sculptie meshing being enabled so this is the most | ||
1531 | // convenient place to do it for now... | ||
1532 | |||
1528 | // //if (pbs.PathCurve == (byte)LLObject.PathCurve.Circle && pbs.ProfileCurve == (byte)LLObject.ProfileCurve.Circle && pbs.PathScaleY <= 0.75f) | 1533 | // //if (pbs.PathCurve == (byte)LLObject.PathCurve.Circle && pbs.ProfileCurve == (byte)LLObject.ProfileCurve.Circle && pbs.PathScaleY <= 0.75f) |
1529 | // //Console.WriteLine("needsMeshing: " + " pathCurve: " + pbs.PathCurve.ToString() + " profileCurve: " + pbs.ProfileCurve.ToString() + " pathScaleY: " + LLObject.UnpackPathScale(pbs.PathScaleY).ToString()); | 1534 | // //Console.WriteLine("needsMeshing: " + " pathCurve: " + pbs.PathCurve.ToString() + " profileCurve: " + pbs.ProfileCurve.ToString() + " pathScaleY: " + LLObject.UnpackPathScale(pbs.PathScaleY).ToString()); |
1530 | // if (pbs.SculptEntry && !meshSculptedPrim) | 1535 | if (pbs.SculptEntry && !meshSculptedPrim) |
1531 | // { | 1536 | { |
1532 | // return false; | 1537 | return false; |
1533 | // } | 1538 | } |
1534 | 1539 | ||
1535 | // if (pbs.ProfileHollow != 0) | 1540 | // if (pbs.ProfileHollow != 0) |
1536 | // return true; | 1541 | // return true; |
@@ -1577,7 +1582,9 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1577 | 1582 | ||
1578 | 1583 | ||
1579 | // return false; | 1584 | // return false; |
1580 | //} | 1585 | |
1586 | return true; // assume the mesher will return a default shape or null and later code can deal with this | ||
1587 | } | ||
1581 | 1588 | ||
1582 | /// <summary> | 1589 | /// <summary> |
1583 | /// Called after our prim properties are set Scale, position etc. | 1590 | /// Called after our prim properties are set Scale, position etc. |
@@ -1763,7 +1770,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1763 | 1770 | ||
1764 | lock (_activeprims) | 1771 | lock (_activeprims) |
1765 | { | 1772 | { |
1766 | if (timeStep < 0.2f) | 1773 | //if (timeStep < 0.2f) |
1767 | { | 1774 | { |
1768 | foreach (OdePrim actor in _activeprims) | 1775 | foreach (OdePrim actor in _activeprims) |
1769 | { | 1776 | { |