| 39 |
/// <summary> |
/// <summary> |
| 40 |
/// All avatar modifications run through this queue |
/// All avatar modifications run through this queue |
| 41 |
/// </summary> |
/// </summary> |
| 42 |
public Queue<VObject> AvatarModidifications = new Queue<VObject>(); |
public Queue<VObject> AvatarModifications = new Queue<VObject>(); |
| 43 |
/// <summary> |
/// <summary> |
| 44 |
/// All Meshing gets queued up int this queue. |
/// All Meshing gets queued up int this queue. |
| 45 |
/// </summary> |
/// </summary> |
| 827 |
{ |
{ |
| 828 |
if ((sculpt = prim.Sculpt) != null) |
if ((sculpt = prim.Sculpt) != null) |
| 829 |
{ |
{ |
| 830 |
if (sculpt.SculptTexture != UUID.Zero) |
if (m_viewer.MeshSculpties && sculpt.SculptTexture != UUID.Zero) |
| 831 |
{ |
{ |
| 832 |
m_log.Warn("[SCULPT]: Got Sculpt"); |
m_log.Warn("[SCULPT]: Got Sculpt"); |
| 833 |
if (!m_viewer.TextureManager.tryGetTexture(sculpt.SculptTexture, out sculpttex)) |
if (!m_viewer.TextureManager.tryGetTexture(sculpt.SculptTexture, out sculpttex)) |
| 856 |
// Mesh a regular prim. |
// Mesh a regular prim. |
| 857 |
vobj.Mesh = m_viewer.MeshManager.GetMeshInstance(prim); |
vobj.Mesh = m_viewer.MeshManager.GetMeshInstance(prim); |
| 858 |
} |
} |
| 859 |
else |
else if (m_viewer.MeshSculpties) |
| 860 |
{ |
{ |
| 861 |
if (sculpt != null) |
if (sculpt != null) |
| 862 |
{ |
{ |
| 1472 |
} |
} |
| 1473 |
} |
} |
| 1474 |
|
|
| 1475 |
|
try |
| 1476 |
|
{ |
| 1477 |
if (newObject != null) |
if (newObject != null) |
| 1478 |
{ |
{ |
| 1479 |
if (newObject.SceneNode != null) |
if (newObject.SceneNode != null) |
| 1519 |
} |
} |
| 1520 |
|
|
| 1521 |
} |
} |
| 1522 |
|
} |
| 1523 |
|
|
| 1524 |
|
catch (Exception e) |
| 1525 |
|
{ |
| 1526 |
|
m_log.Error("Caught exception: " + e.ToString()); |
| 1527 |
|
} |
| 1528 |
|
|
| 1529 |
|
|
| 1530 |
// Box the object and node |
// Box the object and node |
| 1578 |
//} |
//} |
| 1579 |
|
|
| 1580 |
// Add to the Avatar modification queue |
// Add to the Avatar modification queue |
| 1581 |
lock (AvatarModidifications) { AvatarModidifications.Enqueue(avob); } |
lock (AvatarModifications) { AvatarModifications.Enqueue(avob); } |
| 1582 |
|
|
| 1583 |
bool needInitialAnimationState = false; |
bool needInitialAnimationState = false; |
| 1584 |
|
|
| 1671 |
//{ |
//{ |
| 1672 |
// objectModQueue.Enqueue(obj); |
// objectModQueue.Enqueue(obj); |
| 1673 |
//} |
//} |
| 1674 |
lock (AvatarModidifications) { AvatarModidifications.Enqueue(obj); } |
lock (AvatarModifications) { AvatarModifications.Enqueue(obj); } |
| 1675 |
} |
} |
| 1676 |
} |
} |
| 1677 |
else |
else |