mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 23:18:34 +08:00
Add plumbing for the SceneObjectDeleter to wait for the script engine to
allow final deletion of objects. Meant to support the attach(NULL_KEY) event,
This commit is contained in:
@@ -1241,5 +1241,14 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
return "";
|
||||
return instance.GetXMLState();
|
||||
}
|
||||
|
||||
public bool CanBeDeleted(UUID itemID)
|
||||
{
|
||||
IScriptInstance instance = GetInstance(itemID);
|
||||
if (instance == null)
|
||||
return true;
|
||||
|
||||
return instance.CanBeDeleted();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user