mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
Meshmerizer: add INI parameter to enable DEBUG mesh detail logging.
Default to off.
To turn mesh parsing DEBUG detail logging on, add
[Mesh]
LogMeshDetail=true
to the INI file.
This commit is contained in:
@@ -74,7 +74,7 @@ namespace OpenSim.Region.Physics.Meshing
|
||||
private const string baseDir = null; //"rawFiles";
|
||||
#endif
|
||||
// If 'true', lots of DEBUG logging of asset parsing details
|
||||
private bool debugDetail = true;
|
||||
private bool debugDetail = false;
|
||||
|
||||
private bool cacheSculptMaps = true;
|
||||
private string decodedSculptMapPath = null;
|
||||
@@ -94,8 +94,11 @@ namespace OpenSim.Region.Physics.Meshing
|
||||
|
||||
decodedSculptMapPath = start_config.GetString("DecodedSculptMapPath","j2kDecodeCache");
|
||||
cacheSculptMaps = start_config.GetBoolean("CacheSculptMaps", cacheSculptMaps);
|
||||
if(mesh_config != null)
|
||||
if (mesh_config != null)
|
||||
{
|
||||
useMeshiesPhysicsMesh = mesh_config.GetBoolean("UseMeshiesPhysicsMesh", useMeshiesPhysicsMesh);
|
||||
debugDetail = mesh_config.GetBoolean("LogMeshDetails", debugDetail);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
@@ -415,7 +418,7 @@ namespace OpenSim.Region.Physics.Meshing
|
||||
|
||||
if (debugDetail)
|
||||
{
|
||||
string keys = "[MESH]: keys found in convexBlock: ";
|
||||
string keys = LogHeader + " keys found in convexBlock: ";
|
||||
foreach (KeyValuePair<string, OSD> kvp in convexBlock)
|
||||
keys += "'" + kvp.Key + "' ";
|
||||
m_log.Debug(keys);
|
||||
|
||||
Reference in New Issue
Block a user