diff options
Hopefully texturing prims should now work correctly.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs index 69eaa75..1753772 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | |||
@@ -421,7 +421,18 @@ namespace OpenSim.Region.Environment.Scenes | |||
421 | /// <param name="remoteClient"></param> | 421 | /// <param name="remoteClient"></param> |
422 | public void UpdatePrimTexture(uint localID, byte[] texture, IClientAPI remoteClient) | 422 | public void UpdatePrimTexture(uint localID, byte[] texture, IClientAPI remoteClient) |
423 | { | 423 | { |
424 | 424 | Primitive prim = null; | |
425 | foreach (EntityBase ent in Entities.Values) | ||
426 | { | ||
427 | if (ent is SceneObject) | ||
428 | { | ||
429 | prim = ((SceneObject)ent).HasChildPrim(localID); | ||
430 | if (prim != null) | ||
431 | { | ||
432 | prim.UpdateTextureEntry(texture); | ||
433 | } | ||
434 | } | ||
435 | } | ||
425 | } | 436 | } |
426 | 437 | ||
427 | /// <summary> | 438 | /// <summary> |