* removed unused PrimScale on PrimitiveBaseShape (use Scale instead)

* ignored bin
ThreadPoolClientBranch
lbsa71 2008-01-10 13:37:59 +00:00
parent 690a7a347b
commit 2f023f6362
1 changed files with 11 additions and 16 deletions

View File

@ -103,7 +103,7 @@ namespace OpenSim.Framework
public PrimitiveBaseShape() public PrimitiveBaseShape()
{ {
PCode = (byte)PCodeEnum.Primitive; PCode = (byte) PCodeEnum.Primitive;
ExtraParams = new byte[1]; ExtraParams = new byte[1];
Textures = m_defaultTexture; Textures = m_defaultTexture;
} }
@ -125,29 +125,24 @@ namespace OpenSim.Framework
public ProfileShape ProfileShape public ProfileShape ProfileShape
{ {
get { return (ProfileShape)(ProfileCurve & 0xf); } get { return (ProfileShape) (ProfileCurve & 0xf); }
set set
{ {
byte oldValueMasked = (byte)(ProfileCurve & 0xf0); byte oldValueMasked = (byte) (ProfileCurve & 0xf0);
ProfileCurve = (byte)(oldValueMasked | (byte)value); ProfileCurve = (byte) (oldValueMasked | (byte) value);
} }
} }
public HollowShape HollowShape public HollowShape HollowShape
{ {
get { return (HollowShape)(ProfileCurve & 0xf0); } get { return (HollowShape) (ProfileCurve & 0xf0); }
set set
{ {
byte oldValueMasked = (byte)(ProfileCurve & 0x0f); byte oldValueMasked = (byte) (ProfileCurve & 0x0f);
ProfileCurve = (byte)(oldValueMasked | (byte)value); ProfileCurve = (byte) (oldValueMasked | (byte) value);
} }
} }
public LLVector3 PrimScale
{
get { return Scale; }
}
public static PrimitiveBaseShape Default public static PrimitiveBaseShape Default
{ {
get get
@ -171,7 +166,7 @@ namespace OpenSim.Framework
{ {
PrimitiveBaseShape shape = Create(); PrimitiveBaseShape shape = Create();
shape.PathCurve = (byte)Extrusion.Straight; shape.PathCurve = (byte) Extrusion.Straight;
shape.ProfileShape = ProfileShape.Square; shape.ProfileShape = ProfileShape.Square;
shape.PathScaleX = 100; shape.PathScaleX = 100;
shape.PathScaleY = 100; shape.PathScaleY = 100;
@ -183,7 +178,7 @@ namespace OpenSim.Framework
{ {
PrimitiveBaseShape shape = Create(); PrimitiveBaseShape shape = Create();
shape.PathCurve = (byte)Extrusion.Curve1; shape.PathCurve = (byte) Extrusion.Curve1;
shape.ProfileShape = ProfileShape.Square; shape.ProfileShape = ProfileShape.Square;
shape.PathScaleX = 100; shape.PathScaleX = 100;
@ -204,7 +199,7 @@ namespace OpenSim.Framework
public void SetRadius(float radius) public void SetRadius(float radius)
{ {
Scale.X = Scale.Y = radius * 2f; Scale.X = Scale.Y = radius*2f;
} }
//void returns need to change of course //void returns need to change of course
@ -214,7 +209,7 @@ namespace OpenSim.Framework
public PrimitiveBaseShape Copy() public PrimitiveBaseShape Copy()
{ {
return (PrimitiveBaseShape)MemberwiseClone(); return (PrimitiveBaseShape) MemberwiseClone();
} }
public static PrimitiveBaseShape CreateCylinder(float radius, float heigth) public static PrimitiveBaseShape CreateCylinder(float radius, float heigth)