* Enables PrimitiveBaseShape to be used inside a libOpenMV project by adding some alternate codepaths that avoid triggering OpenSim specific code. Probably not useful for most people, but might be for those working on interop projects.
parent
129610e797
commit
1f52ca97c7
|
@ -182,6 +182,16 @@ namespace OpenSim.Framework
|
||||||
Textures = m_defaultTexture;
|
Textures = m_defaultTexture;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public PrimitiveBaseShape(bool noShape)
|
||||||
|
{
|
||||||
|
if (noShape)
|
||||||
|
return;
|
||||||
|
|
||||||
|
PCode = (byte)PCodeEnum.Primitive;
|
||||||
|
ExtraParams = new byte[1];
|
||||||
|
Textures = m_defaultTexture;
|
||||||
|
}
|
||||||
|
|
||||||
[XmlIgnore]
|
[XmlIgnore]
|
||||||
public Primitive.TextureEntry Textures
|
public Primitive.TextureEntry Textures
|
||||||
{
|
{
|
||||||
|
@ -843,7 +853,7 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
public void ReadInExtraParamsBytes(byte[] data)
|
public void ReadInExtraParamsBytes(byte[] data)
|
||||||
{
|
{
|
||||||
if (data == null)
|
if (data == null || data.Length == 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const ushort FlexiEP = 0x10;
|
const ushort FlexiEP = 0x10;
|
||||||
|
|
Loading…
Reference in New Issue