mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
* 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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user