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