* Fixed needing to alter your sculptie sometimes to get physics to generate a collision mesh for it.

* Sculpties load on startup reliably now and successfully generate a collision mesh as soon as the sculpt texture is available.
0.6.0-stable
Teravus Ovares 2008-05-21 05:46:32 +00:00
parent e3efe1de16
commit 8217bbe484
1 changed files with 4 additions and 1 deletions

View File

@ -1933,7 +1933,10 @@ namespace OpenSim.Region.Environment.Scenes
m_shape.SculptData = texture.Data;
if (PhysActor != null)
{
PhysActor.Shape = m_shape;
// Tricks physics engine into thinking we've changed the part shape.
PrimitiveBaseShape m_newshape = m_shape.Copy();
PhysActor.Shape = m_newshape;
m_shape = m_newshape;
}
}
}