* 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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user