null test for texture assets when using cached sculpt map

addresses mantis #3735
0.6.6-post-fixes
Dahlia Trimble 2009-05-29 04:29:55 +00:00
parent db4f8d1298
commit 9493de7f4e
1 changed files with 3 additions and 2 deletions

View File

@ -2268,9 +2268,10 @@ if (m_shape != null) {
{ {
if (m_shape.SculptEntry) 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) if (PhysActor != null)
{ {
// Tricks physics engine into thinking we've changed the part shape. // Tricks physics engine into thinking we've changed the part shape.