aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-12-05 22:12:45 +0000
committerJustin Clark-Casey (justincc)2012-12-05 22:12:45 +0000
commit0f3ebe09713cf67110ff24bf6cd10b9add5cc8c9 (patch)
tree6e436753f8f767b764fbb6f1c7cf4b3a20882bfa /OpenSim/Framework
parentDon't pointlessly set ExtraParams = byte[1] in PrimitiveBaseShape since this ... (diff)
downloadopensim-SC_OLD-0f3ebe09713cf67110ff24bf6cd10b9add5cc8c9.zip
opensim-SC_OLD-0f3ebe09713cf67110ff24bf6cd10b9add5cc8c9.tar.gz
opensim-SC_OLD-0f3ebe09713cf67110ff24bf6cd10b9add5cc8c9.tar.bz2
opensim-SC_OLD-0f3ebe09713cf67110ff24bf6cd10b9add5cc8c9.tar.xz
Remove very probably unused PrimitiveBaseShape(bool) constructor to reduce code complexity
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/PrimitiveBaseShape.cs18
1 files changed, 6 insertions, 12 deletions
diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs
index 3dbdd0f..4c36819 100644
--- a/OpenSim/Framework/PrimitiveBaseShape.cs
+++ b/OpenSim/Framework/PrimitiveBaseShape.cs
@@ -192,15 +192,6 @@ namespace OpenSim.Framework
192 192
193 public PrimitiveBaseShape() 193 public PrimitiveBaseShape()
194 { 194 {
195 PCode = (byte) PCodeEnum.Primitive;
196 m_textureEntry = DEFAULT_TEXTURE;
197 }
198
199 public PrimitiveBaseShape(bool noShape)
200 {
201 if (noShape)
202 return;
203
204 PCode = (byte)PCodeEnum.Primitive; 195 PCode = (byte)PCodeEnum.Primitive;
205 m_textureEntry = DEFAULT_TEXTURE; 196 m_textureEntry = DEFAULT_TEXTURE;
206 } 197 }
@@ -245,7 +236,10 @@ namespace OpenSim.Framework
245 SculptTexture = prim.Sculpt.SculptTexture; 236 SculptTexture = prim.Sculpt.SculptTexture;
246 SculptType = (byte)prim.Sculpt.Type; 237 SculptType = (byte)prim.Sculpt.Type;
247 } 238 }
248 else SculptType = (byte)OpenMetaverse.SculptType.None; 239 else
240 {
241 SculptType = (byte)OpenMetaverse.SculptType.None;
242 }
249 } 243 }
250 244
251 [XmlIgnore] 245 [XmlIgnore]
@@ -337,9 +331,9 @@ namespace OpenSim.Framework
337 _scale = new Vector3(side, side, side); 331 _scale = new Vector3(side, side, side);
338 } 332 }
339 333
340 public void SetHeigth(float heigth) 334 public void SetHeigth(float height)
341 { 335 {
342 _scale.Z = heigth; 336 _scale.Z = height;
343 } 337 }
344 338
345 public void SetRadius(float radius) 339 public void SetRadius(float radius)