diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index a55e07a31e..697dd0ee0f 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -1711,7 +1711,8 @@ namespace OpenSim.Region.Framework.Scenes
{
if (dupe.m_shape.SculptEntry && dupe.m_shape.SculptTexture != UUID.Zero)
{
- m_parentGroup.Scene.AssetService.Get(dupe.m_shape.SculptTexture.ToString(), dupe, AssetReceived);
+ ParentGroup.Scene.AssetService.Get(
+ dupe.m_shape.SculptTexture.ToString(), dupe, dupe.AssetReceived);
}
bool UsePhysics = ((dupe.Flags & PrimFlags.Physics) != 0);
@@ -1725,14 +1726,16 @@ namespace OpenSim.Region.Framework.Scenes
return dupe;
}
+ ///
+ /// Called back by asynchronous asset fetch.
+ ///
+ /// ID of asset received
+ /// Register
+ ///
protected void AssetReceived(string id, Object sender, AssetBase asset)
{
if (asset != null)
- {
- SceneObjectPart sop = (SceneObjectPart)sender;
- if (sop != null)
- sop.SculptTextureCallback(asset);
- }
+ SculptTextureCallback(asset);
}
public static SceneObjectPart Create()