diff options
Diffstat (limited to 'OpenSim/Region/Physics/Meshing/Meshmerizer.cs')
-rw-r--r-- | OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs index 4bf12c9..ba4f941 100644 --- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs | |||
@@ -1295,9 +1295,9 @@ namespace OpenSim.Region.Physics.Meshing | |||
1295 | 1295 | ||
1296 | return m; | 1296 | return m; |
1297 | } | 1297 | } |
1298 | private SculptMesh CreateSculptMesh(string primName, PrimitiveBaseShape primShape, PhysicsVector size) | 1298 | private SculptMesh CreateSculptMesh(string primName, PrimitiveBaseShape primShape, PhysicsVector size, float lod) |
1299 | { | 1299 | { |
1300 | SculptMesh sm = new SculptMesh(primShape.SculptData); | 1300 | SculptMesh sm = new SculptMesh(primShape.SculptData, lod); |
1301 | // Scale the mesh based on our prim scale | 1301 | // Scale the mesh based on our prim scale |
1302 | foreach (Vertex v in sm.vertices) | 1302 | foreach (Vertex v in sm.vertices) |
1303 | { | 1303 | { |
@@ -1422,12 +1422,13 @@ namespace OpenSim.Region.Physics.Meshing | |||
1422 | } | 1422 | } |
1423 | } | 1423 | } |
1424 | 1424 | ||
1425 | public IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, PhysicsVector size) | 1425 | public IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, PhysicsVector size, float lod) |
1426 | { | 1426 | { |
1427 | Mesh mesh = null; | 1427 | Mesh mesh = null; |
1428 | if (primShape.SculptEntry && primShape.SculptType != (byte)0 && primShape.SculptData.Length > 0) | 1428 | if (primShape.SculptEntry && primShape.SculptType != (byte)0 && primShape.SculptData.Length > 0) |
1429 | { | 1429 | { |
1430 | SculptMesh smesh = CreateSculptMesh(primName, primShape, size); | 1430 | |
1431 | SculptMesh smesh = CreateSculptMesh(primName, primShape, size, lod); | ||
1431 | mesh = (Mesh)smesh; | 1432 | mesh = (Mesh)smesh; |
1432 | CalcNormals(mesh); | 1433 | CalcNormals(mesh); |
1433 | } | 1434 | } |