minor: rename GetScriptPrimType() to GetPrimType()
parent
5432925a3b
commit
08721be374
|
@ -3029,7 +3029,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
bool hasDimple;
|
bool hasDimple;
|
||||||
bool hasProfileCut;
|
bool hasProfileCut;
|
||||||
|
|
||||||
PrimType primType = GetScriptPrimType();
|
PrimType primType = GetPrimType();
|
||||||
HasCutHollowDimpleProfileCut(primType, Shape, out hasCut, out hasHollow, out hasDimple, out hasProfileCut);
|
HasCutHollowDimpleProfileCut(primType, Shape, out hasCut, out hasHollow, out hasDimple, out hasProfileCut);
|
||||||
|
|
||||||
switch (primType)
|
switch (primType)
|
||||||
|
@ -3085,7 +3085,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="primShape"></param>
|
/// <param name="primShape"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public PrimType GetScriptPrimType()
|
public PrimType GetPrimType()
|
||||||
{
|
{
|
||||||
if (Shape.SculptEntry)
|
if (Shape.SculptEntry)
|
||||||
return PrimType.SCULPT;
|
return PrimType.SCULPT;
|
||||||
|
|
|
@ -4248,7 +4248,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
{
|
{
|
||||||
int sides = part.GetNumberOfSides();
|
int sides = part.GetNumberOfSides();
|
||||||
|
|
||||||
if (part.GetScriptPrimType() == PrimType.SPHERE && part.Shape.ProfileHollow > 0)
|
if (part.GetPrimType() == PrimType.SPHERE && part.Shape.ProfileHollow > 0)
|
||||||
{
|
{
|
||||||
// Make up for a bug where LSL shows 4 sides rather than 2
|
// Make up for a bug where LSL shows 4 sides rather than 2
|
||||||
sides += 2;
|
sides += 2;
|
||||||
|
@ -7311,7 +7311,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
case (int)ScriptBaseClass.PRIM_TYPE:
|
case (int)ScriptBaseClass.PRIM_TYPE:
|
||||||
// implementing box
|
// implementing box
|
||||||
PrimitiveBaseShape Shape = part.Shape;
|
PrimitiveBaseShape Shape = part.Shape;
|
||||||
int primType = (int)part.GetScriptPrimType();
|
int primType = (int)part.GetPrimType();
|
||||||
res.Add(new LSL_Integer(primType));
|
res.Add(new LSL_Integer(primType));
|
||||||
double topshearx = (double)(sbyte)Shape.PathShearX / 100.0; // Fix negative values for PathShearX
|
double topshearx = (double)(sbyte)Shape.PathShearX / 100.0; // Fix negative values for PathShearX
|
||||||
double topsheary = (double)(sbyte)Shape.PathShearY / 100.0; // and PathShearY.
|
double topsheary = (double)(sbyte)Shape.PathShearY / 100.0; // and PathShearY.
|
||||||
|
|
Loading…
Reference in New Issue