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