mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Minor spelling corrections in MiniModule: "RetreiveAsset" changed to
"RetrieveAsset" and 'm_rootSceene' to m_rootScene'.
This commit is contained in:
@@ -39,6 +39,6 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||
{
|
||||
int Type { get; }
|
||||
UUID AssetID { get; }
|
||||
T RetreiveAsset<T>() where T : Asset, new();
|
||||
T RetrieveAsset<T>() where T : Asset, new();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,11 +39,11 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||
public class InventoryItem : IInventoryItem
|
||||
{
|
||||
TaskInventoryItem m_privateItem;
|
||||
Scene m_rootSceene;
|
||||
Scene m_rootScene;
|
||||
|
||||
public InventoryItem(Scene rootScene, TaskInventoryItem internalItem)
|
||||
{
|
||||
m_rootSceene = rootScene;
|
||||
m_rootScene = rootScene;
|
||||
m_privateItem = internalItem;
|
||||
}
|
||||
|
||||
@@ -82,9 +82,9 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||
public UUID AssetID { get { return m_privateItem.AssetID; } }
|
||||
|
||||
// This method exposes OpenSim/OpenMetaverse internals and needs to be replaced with a IAsset specific to MRM.
|
||||
public T RetreiveAsset<T>() where T : OpenMetaverse.Assets.Asset, new()
|
||||
public T RetrieveAsset<T>() where T : OpenMetaverse.Assets.Asset, new()
|
||||
{
|
||||
AssetBase a = m_rootSceene.AssetService.Get(AssetID.ToString());
|
||||
AssetBase a = m_rootScene.AssetService.Get(AssetID.ToString());
|
||||
T result = new T();
|
||||
|
||||
if ((sbyte)result.AssetType != a.Type)
|
||||
|
||||
Reference in New Issue
Block a user