null test for texture assets when using cached sculpt map

addresses mantis #3735
This commit is contained in:
Dahlia Trimble
2009-05-29 04:29:55 +00:00
parent db4f8d1298
commit 9493de7f4e

View File

@@ -2268,9 +2268,10 @@ if (m_shape != null) {
{
if (m_shape.SculptEntry)
{
//if (texture != null) // null could mean a cached sculpt map has been found
{
m_shape.SculptData = texture.Data;
if (texture != null)
m_shape.SculptData = texture.Data;
if (PhysActor != null)
{
// Tricks physics engine into thinking we've changed the part shape.