aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
authorMW2007-07-11 18:32:32 +0000
committerMW2007-07-11 18:32:32 +0000
commit17ddb8b49323777b4678270ebbf4859dd8842abd (patch)
tree048d805596550f01ed7354c4e7b313146e1e1513 /OpenSim/Region/Environment
parentMore work on UserProfile and inventory cache (still currently not enabled). (diff)
downloadopensim-SC-17ddb8b49323777b4678270ebbf4859dd8842abd.zip
opensim-SC-17ddb8b49323777b4678270ebbf4859dd8842abd.tar.gz
opensim-SC-17ddb8b49323777b4678270ebbf4859dd8842abd.tar.bz2
opensim-SC-17ddb8b49323777b4678270ebbf4859dd8842abd.tar.xz
Hopefully texturing prims should now work correctly.
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Scenes/Primitive.cs14
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs13
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs1
3 files changed, 26 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Primitive.cs b/OpenSim/Region/Environment/Scenes/Primitive.cs
index d23a569..d28e480 100644
--- a/OpenSim/Region/Environment/Scenes/Primitive.cs
+++ b/OpenSim/Region/Environment/Scenes/Primitive.cs
@@ -242,7 +242,8 @@ namespace OpenSim.Region.Environment.Scenes
242 pShape.PathTaperY = addPacket.ObjectData.PathTaperY; 242 pShape.PathTaperY = addPacket.ObjectData.PathTaperY;
243 pShape.PathTwist = addPacket.ObjectData.PathTwist; 243 pShape.PathTwist = addPacket.ObjectData.PathTwist;
244 pShape.PathTwistBegin = addPacket.ObjectData.PathTwistBegin; 244 pShape.PathTwistBegin = addPacket.ObjectData.PathTwistBegin;
245 245 LLObject.TextureEntry ntex = new LLObject.TextureEntry(new LLUUID("00000000-0000-0000-9999-000000000005"));
246 pShape.TextureEntry = ntex.ToBytes();
246 this.updateFlag = 1; 247 this.updateFlag = 1;
247 } 248 }
248 #endregion 249 #endregion
@@ -501,6 +502,17 @@ namespace OpenSim.Region.Environment.Scenes
501 } 502 }
502 #endregion 503 #endregion
503 504
505 #region Texture
506 /// <summary>
507 ///
508 /// </summary>
509 /// <param name="textureEntry"></param>
510 public void UpdateTextureEntry(byte[] textureEntry)
511 {
512 this.m_Shape.TextureEntry = textureEntry;
513 this.updateFlag = 1;
514 }
515 #endregion
504 #region Client Update Methods 516 #region Client Update Methods
505 517
506 /// <summary> 518 /// <summary>
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>
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index d1f6038..80c61e1 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -477,6 +477,7 @@ namespace OpenSim.Region.Environment.Scenes
477 client.OnUpdatePrimScale += this.UpdatePrimScale; 477 client.OnUpdatePrimScale += this.UpdatePrimScale;
478 client.OnUpdatePrimShape += this.UpdatePrimShape; 478 client.OnUpdatePrimShape += this.UpdatePrimShape;
479 client.OnRequestMapBlocks += this.RequestMapBlocks; 479 client.OnRequestMapBlocks += this.RequestMapBlocks;
480 client.OnUpdatePrimTexture += this.UpdatePrimTexture;
480 client.OnTeleportLocationRequest += this.RequestTeleportLocation; 481 client.OnTeleportLocationRequest += this.RequestTeleportLocation;
481 client.OnObjectSelect += this.SelectPrim; 482 client.OnObjectSelect += this.SelectPrim;
482 client.OnGrapUpdate += this.MoveObject; 483 client.OnGrapUpdate += this.MoveObject;