* The 'Create' functions should be called to factor up a new, otherwise empty, but with the Id and 1-to-1 child fields instantiated and randomized.
* Added two shape constants thatafrisby
parent
16903ec488
commit
ffd60baa48
|
@ -129,6 +129,12 @@ namespace OpenSim.Framework
|
|||
TextureEntry = m_defaultTextureEntry;
|
||||
}
|
||||
|
||||
public static PrimitiveBaseShape Create()
|
||||
{
|
||||
PrimitiveBaseShape shape = new PrimitiveBaseShape();
|
||||
return shape;
|
||||
}
|
||||
|
||||
//void returns need to change of course
|
||||
public virtual void GetMesh()
|
||||
{
|
||||
|
|
|
@ -774,6 +774,17 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
return LLUUID.Zero;
|
||||
}
|
||||
|
||||
public static SceneObjectPart Create()
|
||||
{
|
||||
SceneObjectPart part = new SceneObjectPart();
|
||||
part.UUID = LLUUID.Random();
|
||||
|
||||
PrimitiveBaseShape shape = PrimitiveBaseShape.Create();
|
||||
part.Shape = shape;
|
||||
|
||||
return part;
|
||||
}
|
||||
|
||||
#region Copying
|
||||
|
||||
/// <summary>
|
||||
|
@ -1603,6 +1614,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
public TaskInventoryItem()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2040,6 +2040,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
|||
public const int PRIM_FULLBRIGHT = 20;
|
||||
public const int PRIM_FLEXIBLE = 21;
|
||||
public const int PRIM_TEXGEN = 22;
|
||||
public const int PRIM_CAST_SHADOWS = 24; // Not implemented, here for completeness sake
|
||||
public const int PRIM_POINT_LIGHT = 23; // Huh?
|
||||
public const int PRIM_TEXGEN_DEFAULT = 0;
|
||||
public const int PRIM_TEXGEN_PLANAR = 1;
|
||||
public const int PRIM_TYPE_BOX = 0;
|
||||
|
|
Loading…
Reference in New Issue