diff options
Hopefully texturing prims should now work correctly.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Primitive.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Primitive.cs | 14 |
1 files changed, 13 insertions, 1 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> |