aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorMelanie2013-03-11 19:09:49 +0000
committerMelanie2013-03-11 19:09:49 +0000
commit1e7c7fb77978d835278c5576e07c00b6720402a3 (patch)
tree8e36cac6925fcc355e48530981ecc69c053977d1 /OpenSim/Region/Framework
parentMerge branch 'master' into careminster (diff)
parentUpdate comment about setting physics=BulletSimN as the C# Bullet (diff)
downloadopensim-SC-1e7c7fb77978d835278c5576e07c00b6720402a3.zip
opensim-SC-1e7c7fb77978d835278c5576e07c00b6720402a3.tar.gz
opensim-SC-1e7c7fb77978d835278c5576e07c00b6720402a3.tar.bz2
opensim-SC-1e7c7fb77978d835278c5576e07c00b6720402a3.tar.xz
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index e22cf47..b8c209e 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -4959,8 +4959,25 @@ namespace OpenSim.Region.Framework.Scenes
4959 4959
4960 Changed changeFlags = 0; 4960 Changed changeFlags = 0;
4961 4961
4962 Primitive.TextureEntryFace fallbackNewFace = newTex.DefaultTexture;
4963 Primitive.TextureEntryFace fallbackOldFace = oldTex.DefaultTexture;
4964
4965 // On Incoming packets, sometimes newText.DefaultTexture is null. The assumption is that all
4966 // other prim-sides are set, but apparently that's not always the case. Lets assume packet/data corruption at this point.
4967 if (fallbackNewFace == null)
4968 {
4969 fallbackNewFace = new Primitive.TextureEntry(Util.BLANK_TEXTURE_UUID).CreateFace(0);
4970 newTex.DefaultTexture = fallbackNewFace;
4971 }
4972 if (fallbackOldFace == null)
4973 {
4974 fallbackOldFace = new Primitive.TextureEntry(Util.BLANK_TEXTURE_UUID).CreateFace(0);
4975 oldTex.DefaultTexture = fallbackOldFace;
4976 }
4977
4962 for (int i = 0 ; i < GetNumberOfSides(); i++) 4978 for (int i = 0 ; i < GetNumberOfSides(); i++)
4963 { 4979 {
4980
4964 Primitive.TextureEntryFace newFace = newTex.DefaultTexture; 4981 Primitive.TextureEntryFace newFace = newTex.DefaultTexture;
4965 Primitive.TextureEntryFace oldFace = oldTex.DefaultTexture; 4982 Primitive.TextureEntryFace oldFace = oldTex.DefaultTexture;
4966 4983