added a hollow size constraint to box, cylinder, and prism prim meshes to prevent a possible sim lockup
parent
7420f96128
commit
c5333af7a2
|
@ -526,6 +526,8 @@ namespace OpenSim.Region.Physics.Meshing
|
||||||
// Deal with the hole here
|
// Deal with the hole here
|
||||||
if (hollowFactor > 0)
|
if (hollowFactor > 0)
|
||||||
{
|
{
|
||||||
|
if (hollowFactor < 1000)
|
||||||
|
hollowFactor = 1000; // some sane minimum for our beloved SimpleHull routines
|
||||||
|
|
||||||
SimpleHull holeHull = BuildHoleHull(primShape, primShape.ProfileShape, primShape.HollowShape, hollowFactor);
|
SimpleHull holeHull = BuildHoleHull(primShape, primShape.ProfileShape, primShape.HollowShape, hollowFactor);
|
||||||
if (holeHull != null)
|
if (holeHull != null)
|
||||||
|
@ -887,6 +889,9 @@ namespace OpenSim.Region.Physics.Meshing
|
||||||
// Deal with the hole here
|
// Deal with the hole here
|
||||||
if (hollowFactor > 0)
|
if (hollowFactor > 0)
|
||||||
{
|
{
|
||||||
|
if (hollowFactor < 1000)
|
||||||
|
hollowFactor = 1000; // some sane minimum for our beloved SimpleHull routines
|
||||||
|
|
||||||
SimpleHull holeHull = BuildHoleHull(primShape, primShape.ProfileShape, primShape.HollowShape, hollowFactor);
|
SimpleHull holeHull = BuildHoleHull(primShape, primShape.ProfileShape, primShape.HollowShape, hollowFactor);
|
||||||
if (holeHull != null)
|
if (holeHull != null)
|
||||||
{
|
{
|
||||||
|
@ -1137,6 +1142,9 @@ namespace OpenSim.Region.Physics.Meshing
|
||||||
// Deal with the hole here
|
// Deal with the hole here
|
||||||
if (hollowFactor > 0)
|
if (hollowFactor > 0)
|
||||||
{
|
{
|
||||||
|
if (hollowFactor < 1000)
|
||||||
|
hollowFactor = 1000; // some sane minimum for our beloved SimpleHull routines
|
||||||
|
|
||||||
SimpleHull holeHull = BuildHoleHull(primShape, primShape.ProfileShape, primShape.HollowShape, hollowFactor);
|
SimpleHull holeHull = BuildHoleHull(primShape, primShape.ProfileShape, primShape.HollowShape, hollowFactor);
|
||||||
if (holeHull != null)
|
if (holeHull != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue