diff options
author | UbitUmarov | 2019-03-07 12:12:11 +0000 |
---|---|---|
committer | UbitUmarov | 2019-03-07 12:12:11 +0000 |
commit | fbd741ece37b688d7ec2860f4e4f35767213e09f (patch) | |
tree | b65cf6126eff9366bc03c1ffd2e0420b704ca734 /OpenSim/Region/OptionalModules | |
parent | don't read from dbs wrong sound flags (diff) | |
download | opensim-SC-fbd741ece37b688d7ec2860f4e4f35767213e09f.zip opensim-SC-fbd741ece37b688d7ec2860f4e4f35767213e09f.tar.gz opensim-SC-fbd741ece37b688d7ec2860f4e4f35767213e09f.tar.bz2 opensim-SC-fbd741ece37b688d7ec2860f4e4f35767213e09f.tar.xz |
prims have at most 9 face textures
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs b/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs index 516f9eb..822439f 100644 --- a/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs +++ b/OpenSim/Region/OptionalModules/Materials/MaterialsModule.cs | |||
@@ -323,7 +323,7 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
323 | } | 323 | } |
324 | 324 | ||
325 | if(facechanged) | 325 | if(facechanged) |
326 | part.Shape.TextureEntry = te.GetBytes(); | 326 | part.Shape.TextureEntry = te.GetBytes(9); |
327 | 327 | ||
328 | if(facechanged || partchanged) | 328 | if(facechanged || partchanged) |
329 | { | 329 | { |
@@ -632,7 +632,7 @@ namespace OpenSim.Region.OptionalModules.Materials | |||
632 | faceEntry.MaterialID = id; | 632 | faceEntry.MaterialID = id; |
633 | //m_log.DebugFormat("[Materials]: in \"{0}\" {1}, setting material ID for face {2} to {3}", sop.Name, sop.UUID, face, id); | 633 | //m_log.DebugFormat("[Materials]: in \"{0}\" {1}, setting material ID for face {2} to {3}", sop.Name, sop.UUID, face, id); |
634 | // We can't use sop.UpdateTextureEntry(te) because it filters, so do it manually | 634 | // We can't use sop.UpdateTextureEntry(te) because it filters, so do it manually |
635 | sop.Shape.TextureEntry = te.GetBytes(); | 635 | sop.Shape.TextureEntry = te.GetBytes(9); |
636 | } | 636 | } |
637 | 637 | ||
638 | if(oldid != UUID.Zero) | 638 | if(oldid != UUID.Zero) |