mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
added a hollow size constraint to box, cylinder, and prism prim meshes to prevent a possible sim lockup
This commit is contained in:
@@ -526,6 +526,8 @@ namespace OpenSim.Region.Physics.Meshing
|
||||
// Deal with the hole here
|
||||
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);
|
||||
if (holeHull != null)
|
||||
@@ -887,6 +889,9 @@ namespace OpenSim.Region.Physics.Meshing
|
||||
// Deal with the hole here
|
||||
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);
|
||||
if (holeHull != null)
|
||||
{
|
||||
@@ -1137,6 +1142,9 @@ namespace OpenSim.Region.Physics.Meshing
|
||||
// Deal with the hole here
|
||||
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);
|
||||
if (holeHull != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user