* 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.

0.6.0-stable
Adam Frisby 2008-10-31 08:54:54 +00:00
parent 129610e797
commit 1f52ca97c7
1 changed files with 11 additions and 1 deletions

View File

@ -182,6 +182,16 @@ namespace OpenSim.Framework
Textures = m_defaultTexture;
}
public PrimitiveBaseShape(bool noShape)
{
if (noShape)
return;
PCode = (byte)PCodeEnum.Primitive;
ExtraParams = new byte[1];
Textures = m_defaultTexture;
}
[XmlIgnore]
public Primitive.TextureEntry Textures
{
@ -843,7 +853,7 @@ namespace OpenSim.Framework
public void ReadInExtraParamsBytes(byte[] data)
{
if (data == null)
if (data == null || data.Length == 1)
return;
const ushort FlexiEP = 0x10;