Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
commit
8d5cce3138
|
@ -596,9 +596,9 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "R":
|
case "R":
|
||||||
Font newFont = new Font(myFont, FontStyle.Regular);
|
Font anewFont = new Font(myFont, FontStyle.Regular);
|
||||||
myFont.Dispose();
|
myFont.Dispose();
|
||||||
myFont = newFont;
|
myFont = anewFont;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1092,18 +1092,21 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
CalcPrimBodyData();
|
CalcPrimBodyData();
|
||||||
|
|
||||||
m_mesh = null;
|
m_mesh = null;
|
||||||
if (_parent_scene.needsMeshing(pbs))
|
if (_parent_scene.needsMeshing(pbs) && (pbs.SculptData.Length > 0))
|
||||||
{
|
{
|
||||||
bool convex;
|
bool convex;
|
||||||
|
int clod = (int)LevelOfDetail.High;
|
||||||
if (m_shapetype == 0)
|
if (m_shapetype == 0)
|
||||||
convex = false;
|
convex = false;
|
||||||
else
|
else
|
||||||
|
{
|
||||||
convex = true;
|
convex = true;
|
||||||
|
if (_pbs.SculptType != (byte)SculptType.Mesh)
|
||||||
m_mesh = _parent_scene.mesher.CreateMesh(Name, _pbs, _size, (int)LevelOfDetail.High, true, convex);
|
clod = (int)LevelOfDetail.Low;
|
||||||
|
}
|
||||||
|
m_mesh = _parent_scene.mesher.CreateMesh(Name, _pbs, _size, clod, true, convex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
m_building = true; // control must set this to false when done
|
m_building = true; // control must set this to false when done
|
||||||
|
|
||||||
AddChange(changes.Add, null);
|
AddChange(changes.Add, null);
|
||||||
|
@ -1360,12 +1363,18 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
if (m_mesh == null)
|
if (m_mesh == null)
|
||||||
{
|
{
|
||||||
bool convex;
|
bool convex;
|
||||||
|
int clod = (int)LevelOfDetail.High;
|
||||||
|
|
||||||
if (m_shapetype == 0)
|
if (m_shapetype == 0)
|
||||||
convex = false;
|
convex = false;
|
||||||
else
|
else
|
||||||
|
{
|
||||||
convex = true;
|
convex = true;
|
||||||
|
if (_pbs.SculptType != (byte)SculptType.Mesh)
|
||||||
|
clod = (int)LevelOfDetail.Low;
|
||||||
|
}
|
||||||
|
|
||||||
mesh = _parent_scene.mesher.CreateMesh(Name, _pbs, _size, (int)LevelOfDetail.High, true, convex);
|
mesh = _parent_scene.mesher.CreateMesh(Name, _pbs, _size, clod, true, convex);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue