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.user_profiles
parent
a087dbed7f
commit
81a6c39781
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue