* Applying patches from [LIBOMV-169] by Cristopher Yeoh to fix prim color and transparency export/import problems (originally reported by Tim Hart)

* Added LLVector2.FromBytes() and LLVector2.GetBytes()
* Added copy constructors for all basic types
* Marked all basic types as serializable

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1932 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2008-07-20 23:22:39 +00:00
parent b71a383f98
commit 14005ff849
3 changed files with 179 additions and 54 deletions

View File

@@ -879,7 +879,15 @@ namespace libsecondlife
extra.ObjectData[0] = new ObjectExtraParamsPacket.ObjectDataBlock();
extra.ObjectData[0].ObjectLocalID = localID;
extra.ObjectData[0].ParamType = (byte)Primitive.ExtraParamType.Light;
extra.ObjectData[0].ParamInUse = true;
if (light.Intensity == 0.0f)
{
// Disables the light if intensity is 0
extra.ObjectData[0].ParamInUse = false;
}
else
{
extra.ObjectData[0].ParamInUse = true;
}
extra.ObjectData[0].ParamData = light.GetBytes();
extra.ObjectData[0].ParamSize = (uint)extra.ObjectData[0].ParamData.Length;