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
|
@ -1088,7 +1088,32 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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)
|
public double llGetAlpha(int face)
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
|
@ -5498,7 +5523,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
SetShiny(part, face, shiny, bump);
|
SetShiny(part, face, shiny, bump);
|
||||||
|
|
||||||
break;
|
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 -->
|
<!-- New asset sets can be added as shown below -->
|
||||||
|
|
||||||
<!--
|
|
||||||
<Section Name="My Asset Set">
|
<Section Name="My Asset Set">
|
||||||
<Key Name="file" Value="MyAssetSet/MyAssetSet.xml"/>
|
<Key Name="file" Value="OpenTexturesAssetSet/3DDCAssetSet.xml"/>
|
||||||
</Section>
|
</Section>
|
||||||
-->
|
|
||||||
|
|
||||||
|
|
||||||
<Section Name="Animations AssetSet">
|
<Section Name="Animations AssetSet">
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
the hardcoded root library folder ("OpenSim Library")
|
the hardcoded root library folder ("OpenSim Library")
|
||||||
|
|
||||||
You can also add folders and items to the folders of libraries defined in this file -->
|
You can also add folders and items to the folders of libraries defined in this file -->
|
||||||
<!--
|
|
||||||
<Section Name="My Site Library">
|
<Section Name="Open Textures Library">
|
||||||
<Key Name="foldersFile" Value="MySiteLibrary/MySiteLibraryFolders.xml"/>
|
<Key Name="foldersFile" Value="OpenTexturesLibrary/3DDCInventoryFolders.xml"/>
|
||||||
<Key Name="itemsFile" Value="MySiteLibrary/MySiteLibraryItems.xml"/>
|
<Key Name="itemsFile" Value="OpenTexturesLibrary/3DDCInventoryItems.xml"/>
|
||||||
</Section>
|
</Section>
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- comment the following to stop from loading the subfolders on login -->
|
<!-- comment the following to stop from loading the subfolders on login -->
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue