Mantis#1971. Thank you kindly, BlueWall for a patch that:
The included patch enable handling for PRIM_FULLBRIGHT in llSetPrimitiveParams().0.6.0-stable
parent
7c8cc345cd
commit
60a676251a
|
@ -1089,6 +1089,31 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
}
|
||||
}
|
||||
|
||||
public void SetFullBright(SceneObjectPart part, int face, bool bright)
|
||||
{
|
||||
LLObject.TextureEntry tex = part.Shape.Textures;
|
||||
if (face > -1)
|
||||
{
|
||||
tex.CreateFace((uint) face);
|
||||
tex.FaceTextures[face].Fullbright = bright;
|
||||
part.UpdateTexture(tex);
|
||||
return;
|
||||
}
|
||||
else if (face == -1)
|
||||
{
|
||||
for (uint i = 0; i < 32; i++)
|
||||
{
|
||||
if (tex.FaceTextures[i] != null)
|
||||
{
|
||||
tex.FaceTextures[i].Fullbright = bright;
|
||||
}
|
||||
}
|
||||
tex.DefaultTexture.Fullbright = bright;
|
||||
part.UpdateTexture(tex);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
public double llGetAlpha(int face)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
@ -5498,7 +5523,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
SetShiny(part, face, shiny, bump);
|
||||
|
||||
break;
|
||||
}
|
||||
case (int)ScriptBaseClass.PRIM_FULLBRIGHT:
|
||||
if (remain < 2)
|
||||
return;
|
||||
face = Convert.ToInt32(rules.Data[idx++]);
|
||||
string bv = rules.Data[idx++].ToString();
|
||||
bool st;
|
||||
if(bv.Equals("1"))
|
||||
st = true;
|
||||
else
|
||||
st = false;
|
||||
|
||||
SetFullBright(part, face , st);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
|
||||
<!-- New asset sets can be added as shown below -->
|
||||
|
||||
<!--
|
||||
|
||||
<Section Name="My Asset Set">
|
||||
<Key Name="file" Value="MyAssetSet/MyAssetSet.xml"/>
|
||||
<Key Name="file" Value="OpenTexturesAssetSet/3DDCAssetSet.xml"/>
|
||||
</Section>
|
||||
-->
|
||||
|
||||
|
||||
|
||||
<Section Name="Animations AssetSet">
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
the hardcoded root library folder ("OpenSim Library")
|
||||
|
||||
You can also add folders and items to the folders of libraries defined in this file -->
|
||||
<!--
|
||||
<Section Name="My Site Library">
|
||||
<Key Name="foldersFile" Value="MySiteLibrary/MySiteLibraryFolders.xml"/>
|
||||
<Key Name="itemsFile" Value="MySiteLibrary/MySiteLibraryItems.xml"/>
|
||||
|
||||
<Section Name="Open Textures Library">
|
||||
<Key Name="foldersFile" Value="OpenTexturesLibrary/3DDCInventoryFolders.xml"/>
|
||||
<Key Name="itemsFile" Value="OpenTexturesLibrary/3DDCInventoryItems.xml"/>
|
||||
</Section>
|
||||
-->
|
||||
|
||||
|
||||
<!-- comment the following to stop from loading the subfolders on login -->
|
||||
|
||||
|
|
Loading…
Reference in New Issue