diff options
author | Melanie | 2010-03-03 02:07:03 +0000 |
---|---|---|
committer | Melanie | 2010-03-03 02:07:03 +0000 |
commit | 028a87fe37002e7a0611f66babf1deee46c83804 (patch) | |
tree | 387aec499fd60c2012bed8148e6a2ddc847c3d95 /OpenSim/Framework/PrimitiveBaseShape.cs | |
parent | Revert "test" (diff) | |
parent | Fixes Region.Framework tests. Although these tests don't fail, they need to b... (diff) | |
download | opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.zip opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.tar.gz opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.tar.bz2 opensim-SC-028a87fe37002e7a0611f66babf1deee46c83804.tar.xz |
Merge branch 'master' into careminster-presence-refactor
This brings careminster on the level of master. To be tested
Diffstat (limited to '')
-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..6a38278 100644 --- a/OpenSim/Framework/PrimitiveBaseShape.cs +++ b/OpenSim/Framework/PrimitiveBaseShape.cs | |||
@@ -188,6 +188,40 @@ namespace OpenSim.Framework | |||
188 | m_textureEntry = DEFAULT_TEXTURE; | 188 | m_textureEntry = DEFAULT_TEXTURE; |
189 | } | 189 | } |
190 | 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; | ||
223 | } | ||
224 | |||
191 | [XmlIgnore] | 225 | [XmlIgnore] |
192 | public Primitive.TextureEntry Textures | 226 | public Primitive.TextureEntry Textures |
193 | { | 227 | { |