aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authormarc2011-11-25 15:21:42 +0100
committerJustin Clark-Casey (justincc)2011-12-03 15:49:19 +0000
commite75bcd4c59234382ac3efb743a228cd23d92ad45 (patch)
tree7bfd1db211c8c54eb9873301dce6d1f8afe77454 /OpenSim/Region/Framework
parentUpdate SP.PhysicsCollisionUpdate() doc. (diff)
downloadopensim-SC_OLD-e75bcd4c59234382ac3efb743a228cd23d92ad45.zip
opensim-SC_OLD-e75bcd4c59234382ac3efb743a228cd23d92ad45.tar.gz
opensim-SC_OLD-e75bcd4c59234382ac3efb743a228cd23d92ad45.tar.bz2
opensim-SC_OLD-e75bcd4c59234382ac3efb743a228cd23d92ad45.tar.xz
Workaround for mesh to correct the number of faces in GetNumberOfSides(). Meshs are handeled as sculpts but can have up to 8 faces (SL restriction the collada format can handle even more). The patch enables all LSL function that adressing faces to behave correct. Like llGetNumberOfSides(); llSetLinkPrimitiveParamsFast(); llSetPrimitiveParams(); llSetColor();
Signed-off-by: marc <mare@sounddog.net>
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 24322a1..304a7a7 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -3272,7 +3272,15 @@ namespace OpenSim.Region.Framework.Scenes
3272 if (hasHollow) ret += 1; 3272 if (hasHollow) ret += 1;
3273 break; 3273 break;
3274 case PrimType.SCULPT: 3274 case PrimType.SCULPT:
3275 ret = 1; 3275 // Special mesh handling
3276 if (this.Shape.SculptType == 5)
3277 {
3278 ret = 7; // its a mesh then max 8 faces
3279 }
3280 else
3281 {
3282 ret = 1; // its a sculpt then max 1 faces
3283 }
3276 break; 3284 break;
3277 } 3285 }
3278 return ret; 3286 return ret;