aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 11040b7..3cc72fe 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -3325,9 +3325,14 @@ namespace OpenSim.Region.Framework.Scenes
3325 if (hasHollow) ret += 1; 3325 if (hasHollow) ret += 1;
3326 break; 3326 break;
3327 case PrimType.SCULPT: 3327 case PrimType.SCULPT:
3328 ret = 1; 3328 // Special mesh handling
3329 if (Shape.SculptType == (byte)SculptType.Mesh)
3330 ret = 8; // if it's a mesh then max 8 faces
3331 else
3332 ret = 1; // if it's a sculpt then max 1 face
3329 break; 3333 break;
3330 } 3334 }
3335
3331 return ret; 3336 return ret;
3332 } 3337 }
3333 3338
@@ -3340,6 +3345,7 @@ namespace OpenSim.Region.Framework.Scenes
3340 { 3345 {
3341 if (Shape.SculptEntry) 3346 if (Shape.SculptEntry)
3342 return PrimType.SCULPT; 3347 return PrimType.SCULPT;
3348
3343 if ((Shape.ProfileCurve & 0x07) == (byte)ProfileShape.Square) 3349 if ((Shape.ProfileCurve & 0x07) == (byte)ProfileShape.Square)
3344 { 3350 {
3345 if (Shape.PathCurve == (byte)Extrusion.Straight) 3351 if (Shape.PathCurve == (byte)Extrusion.Straight)