diff options
author | Melanie | 2010-03-01 01:01:32 +0000 |
---|---|---|
committer | Melanie | 2010-03-01 01:01:32 +0000 |
commit | 38ea1dd5c82df6e037f7e634df572df5a38b2bd0 (patch) | |
tree | 5d94d42e833985ff13a1522085b28f9889d70595 /OpenSim/Framework | |
parent | Should have things the right way around, better that way (diff) | |
parent | fix bug where region settings loaded via an oar (water height, terrain textur... (diff) | |
download | opensim-SC-38ea1dd5c82df6e037f7e634df572df5a38b2bd0.zip opensim-SC-38ea1dd5c82df6e037f7e634df572df5a38b2bd0.tar.gz opensim-SC-38ea1dd5c82df6e037f7e634df572df5a38b2bd0.tar.bz2 opensim-SC-38ea1dd5c82df6e037f7e634df572df5a38b2bd0.tar.xz |
Merge branch 'master' into presence-refactor
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/PrimitiveBaseShape.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs index fe8f020..b88f162 100644 --- a/OpenSim/Framework/PrimitiveBaseShape.cs +++ b/OpenSim/Framework/PrimitiveBaseShape.cs | |||
@@ -186,6 +186,40 @@ namespace OpenSim.Framework | |||
186 | PCode = (byte)PCodeEnum.Primitive; | 186 | PCode = (byte)PCodeEnum.Primitive; |
187 | ExtraParams = new byte[1]; | 187 | ExtraParams = new byte[1]; |
188 | m_textureEntry = DEFAULT_TEXTURE; | 188 | m_textureEntry = DEFAULT_TEXTURE; |
189 | } | ||
190 | |||
191 | public PrimitiveBaseShape(Primitive prim) | ||
192 | { | ||
193 | PCode = (byte)prim.PrimData.PCode; | ||
194 | ExtraParams = new byte[1]; | ||
195 | |||
196 | State = prim.PrimData.State; | ||
197 | PathBegin = Primitive.PackBeginCut(prim.PrimData.PathBegin); | ||
198 | PathEnd = Primitive.PackEndCut(prim.PrimData.PathEnd); | ||
199 | PathScaleX = Primitive.PackPathScale(prim.PrimData.PathScaleX); | ||
200 | PathScaleY = Primitive.PackPathScale(prim.PrimData.PathScaleY); | ||
201 | PathShearX = (byte)Primitive.PackPathShear(prim.PrimData.PathShearX); | ||
202 | PathShearY = (byte)Primitive.PackPathShear(prim.PrimData.PathShearY); | ||
203 | PathSkew = Primitive.PackPathTwist(prim.PrimData.PathSkew); | ||
204 | ProfileBegin = Primitive.PackBeginCut(prim.PrimData.ProfileBegin); | ||
205 | ProfileEnd = Primitive.PackEndCut(prim.PrimData.ProfileEnd); | ||
206 | Scale = prim.Scale; | ||
207 | PathCurve = (byte)prim.PrimData.PathCurve; | ||
208 | ProfileCurve = (byte)prim.PrimData.ProfileCurve; | ||
209 | ProfileHollow = Primitive.PackProfileHollow(prim.PrimData.ProfileHollow); | ||
210 | PathRadiusOffset = Primitive.PackPathTwist(prim.PrimData.PathRadiusOffset); | ||
211 | PathRevolutions = Primitive.PackPathRevolutions(prim.PrimData.PathRevolutions); | ||
212 | PathTaperX = Primitive.PackPathTaper(prim.PrimData.PathTaperX); | ||
213 | PathTaperY = Primitive.PackPathTaper(prim.PrimData.PathTaperY); | ||
214 | PathTwist = Primitive.PackPathTwist(prim.PrimData.PathTwist); | ||
215 | PathTwistBegin = Primitive.PackPathTwist(prim.PrimData.PathTwistBegin); | ||
216 | |||
217 | m_textureEntry = prim.Textures.GetBytes(); | ||
218 | |||
219 | SculptEntry = (prim.Sculpt.Type != OpenMetaverse.SculptType.None); | ||
220 | SculptData = prim.Sculpt.GetBytes(); | ||
221 | SculptTexture = prim.Sculpt.SculptTexture; | ||
222 | SculptType = (byte)prim.Sculpt.Type; | ||
189 | } | 223 | } |
190 | 224 | ||
191 | [XmlIgnore] | 225 | [XmlIgnore] |