From 9493de7f4e3123c5b9848db8263a850f226129f4 Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Fri, 29 May 2009 04:29:55 +0000 Subject: null test for texture assets when using cached sculpt map addresses mantis #3735 --- OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 7065d2f..e71ce00 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -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. -- cgit v1.1