diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index ad3bcd5246..36d3588e44 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -4520,10 +4520,18 @@ namespace OpenSim.Region.Framework.Scenes
///
/// Update the texture entry for this part.
///
- ///
- public void UpdateTextureEntry(byte[] textureEntry)
+ ///
+ public void UpdateTextureEntry(byte[] serializedTextureEntry)
+ {
+ UpdateTextureEntry(new Primitive.TextureEntry(serializedTextureEntry, 0, serializedTextureEntry.Length));
+ }
+
+ ///
+ /// Update the texture entry for this part.
+ ///
+ ///
+ public void UpdateTextureEntry(Primitive.TextureEntry newTex)
{
- Primitive.TextureEntry newTex = new Primitive.TextureEntry(textureEntry, 0, textureEntry.Length);
Primitive.TextureEntry oldTex = Shape.Textures;
Changed changeFlags = 0;
@@ -4555,7 +4563,7 @@ namespace OpenSim.Region.Framework.Scenes
break;
}
- m_shape.TextureEntry = textureEntry;
+ m_shape.TextureEntry = newTex.GetBytes();
if (changeFlags != 0)
TriggerScriptChangedEvent(changeFlags);
UpdateFlag = UpdateRequired.FULL;