ubOde remove ols pseudo convex for sculpts
parent
c1ab1289ab
commit
98c64f1aa9
|
@ -425,17 +425,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||||
Vector3 size = repData.size;
|
Vector3 size = repData.size;
|
||||||
|
|
||||||
int clod = (int)LevelOfDetail.High;
|
int clod = (int)LevelOfDetail.High;
|
||||||
bool convex;
|
|
||||||
byte shapetype = repData.shapetype;
|
byte shapetype = repData.shapetype;
|
||||||
if (shapetype == 0)
|
bool convex = shapetype == 2;
|
||||||
convex = false;
|
|
||||||
else
|
|
||||||
{
|
|
||||||
convex = true;
|
|
||||||
// sculpts pseudo convex
|
|
||||||
if (pbs.SculptEntry && pbs.SculptType != (byte)SculptType.Mesh)
|
|
||||||
clod = (int)LevelOfDetail.Low;
|
|
||||||
}
|
|
||||||
|
|
||||||
mesh = m_mesher.GetMesh(actor.Name, pbs, size, clod, true, convex);
|
mesh = m_mesher.GetMesh(actor.Name, pbs, size, clod, true, convex);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue