check for enable disable
parent
e92cb674bc
commit
0f98602561
|
@ -67,6 +67,8 @@ namespace OpenSim.Modules.TextureFetcher
|
||||||
{
|
{
|
||||||
m_scene = scene;
|
m_scene = scene;
|
||||||
|
|
||||||
|
m_log.Info("[" + Name + "] Region '" + scene.Name + "' loaded.");
|
||||||
|
|
||||||
if (m_enable == false)
|
if (m_enable == false)
|
||||||
{
|
{
|
||||||
scene.EventManager.OnObjectAddedToScene += ClearObjekt;
|
scene.EventManager.OnObjectAddedToScene += ClearObjekt;
|
||||||
|
@ -85,7 +87,7 @@ namespace OpenSim.Modules.TextureFetcher
|
||||||
scene.EventManager.OnSceneObjectPartUpdated += UpdateObject;
|
scene.EventManager.OnSceneObjectPartUpdated += UpdateObject;
|
||||||
scene.EventManager.OnSceneObjectPartCopy += CopyObject;
|
scene.EventManager.OnSceneObjectPartCopy += CopyObject;
|
||||||
|
|
||||||
m_log.Info("[" + Name + "] Region '" + scene.Name + "' loaded.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ClearObjekt(SceneObjectPart copy, SceneObjectPart original, bool userExposed)
|
private void ClearObjekt(SceneObjectPart copy, SceneObjectPart original, bool userExposed)
|
||||||
|
@ -160,6 +162,9 @@ namespace OpenSim.Modules.TextureFetcher
|
||||||
|
|
||||||
private void removeTexturesToInventory(SceneObjectPart part)
|
private void removeTexturesToInventory(SceneObjectPart part)
|
||||||
{
|
{
|
||||||
|
if (m_enable == true)
|
||||||
|
return;
|
||||||
|
|
||||||
if (m_scene.LoginsEnabled == false)
|
if (m_scene.LoginsEnabled == false)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -186,6 +191,9 @@ namespace OpenSim.Modules.TextureFetcher
|
||||||
|
|
||||||
private void copyTexturesToInventory(SceneObjectPart part)
|
private void copyTexturesToInventory(SceneObjectPart part)
|
||||||
{
|
{
|
||||||
|
if (m_enable == false)
|
||||||
|
return;
|
||||||
|
|
||||||
if (m_scene.LoginsEnabled == false)
|
if (m_scene.LoginsEnabled == false)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue