mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
a bit cleaner code (?) on sculpts/meshs meshing checking
This commit is contained in:
@@ -1675,21 +1675,18 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
/// <returns></returns>
|
||||
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++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user