From 2122c336b088ebb2900cf6cd061602dda01268e0 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 28 May 2012 14:44:06 +0100 Subject: [PATCH] a bit cleaner code (?) on sculpts/meshs meshing checking --- OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs index b0bc18bd9b..286c7f0721 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs @@ -1675,21 +1675,18 @@ namespace OpenSim.Region.Physics.OdePlugin /// public bool needsMeshing(PrimitiveBaseShape pbs) { - // check sculpts or meshs if (pbs.SculptEntry) { + if (meshSculptedPrim) + return true; + if (pbs.SculptType == (byte)SculptType.Mesh) // always do meshs return true; - if (!meshSculptedPrim) - return false; - else - return true; + return false; } - int iPropertiesNotSupportedDefault = 0; - if (forceSimplePrimMeshing) return true; @@ -1719,6 +1716,8 @@ namespace OpenSim.Region.Physics.OdePlugin // and it's odd.. so for now just return true if asked to force meshs // hopefully mesher will fail if doesn't suport so things still get basic boxes + int iPropertiesNotSupportedDefault = 0; + if (pbs.ProfileHollow != 0) iPropertiesNotSupportedDefault++;