aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
diff options
context:
space:
mode:
authorUbitUmarov2012-02-27 20:08:43 +0000
committerUbitUmarov2012-02-27 20:08:43 +0000
commita725b5e01ed92b54d0bddd321acbe4498492f67c (patch)
tree73ba8effb7f9cf5ef3f3820e450b5d299a984acb /OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
parentMerge branch 'ubitwork' (diff)
downloadopensim-SC_OLD-a725b5e01ed92b54d0bddd321acbe4498492f67c.zip
opensim-SC_OLD-a725b5e01ed92b54d0bddd321acbe4498492f67c.tar.gz
opensim-SC_OLD-a725b5e01ed92b54d0bddd321acbe4498492f67c.tar.bz2
opensim-SC_OLD-a725b5e01ed92b54d0bddd321acbe4498492f67c.tar.xz
Let inworld meshs colide as such and not as basic prim all the time. Removed also LOD, and outerskin on colision meshs.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
index f84918c..a57ebe9 100644
--- a/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
+++ b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
@@ -1772,7 +1772,7 @@ namespace OpenSim.Region.Physics.OdePlugin
1772 IMesh mesh = null; 1772 IMesh mesh = null;
1773 1773
1774 if (needsMeshing(pbs)) 1774 if (needsMeshing(pbs))
1775 mesh = mesher.CreateMesh(primName, pbs, size, 32f, isPhysical); 1775 mesh = mesher.CreateMesh(primName, pbs, size, (int)LevelOfDetail.High, true);
1776 1776
1777 result = AddPrim(primName, position, size, rotation, mesh, pbs, isPhysical, localid); 1777 result = AddPrim(primName, position, size, rotation, mesh, pbs, isPhysical, localid);
1778 1778
@@ -2514,7 +2514,7 @@ namespace OpenSim.Region.Physics.OdePlugin
2514 } 2514 }
2515 2515
2516 // if it's a standard box or sphere with no cuts, hollows, twist or top shear, return false since ODE can use an internal representation for the prim 2516 // if it's a standard box or sphere with no cuts, hollows, twist or top shear, return false since ODE can use an internal representation for the prim
2517 if (!forceSimplePrimMeshing) 2517 if (!forceSimplePrimMeshing && !pbs.SculptEntry)
2518 { 2518 {
2519 if ((pbs.ProfileShape == ProfileShape.Square && pbs.PathCurve == (byte)Extrusion.Straight) 2519 if ((pbs.ProfileShape == ProfileShape.Square && pbs.PathCurve == (byte)Extrusion.Straight)
2520 || (pbs.ProfileShape == ProfileShape.HalfCircle && pbs.PathCurve == (byte)Extrusion.Curve1 2520 || (pbs.ProfileShape == ProfileShape.HalfCircle && pbs.PathCurve == (byte)Extrusion.Curve1
@@ -2537,6 +2537,9 @@ namespace OpenSim.Region.Physics.OdePlugin
2537 } 2537 }
2538 } 2538 }
2539 2539
2540 if (forceSimplePrimMeshing)
2541 return true;
2542
2540 if (pbs.ProfileHollow != 0) 2543 if (pbs.ProfileHollow != 0)
2541 iPropertiesNotSupportedDefault++; 2544 iPropertiesNotSupportedDefault++;
2542 2545
@@ -2601,6 +2604,8 @@ namespace OpenSim.Region.Physics.OdePlugin
2601 } 2604 }
2602 } 2605 }
2603 2606
2607 if (pbs.SculptEntry && meshSculptedPrim)
2608 iPropertiesNotSupportedDefault++;
2604 2609
2605 if (iPropertiesNotSupportedDefault == 0) 2610 if (iPropertiesNotSupportedDefault == 0)
2606 { 2611 {