mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
mantis 8651: try to improve notecards HG sharing ( not tested)
This commit is contained in:
@@ -364,7 +364,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
else if ((sbyte)AssetType.Notecard == assetType)
|
||||
{
|
||||
RecordTextEmbeddedAssetUuids(assetBase);
|
||||
RecordNoteCardEmbeddedAssetUuids(assetBase);
|
||||
}
|
||||
else if ((sbyte)AssetType.LSLText == assetType)
|
||||
{
|
||||
@@ -546,6 +546,22 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
private void RecordNoteCardEmbeddedAssetUuids(AssetBase textAsset)
|
||||
{
|
||||
List<UUID> ids = SLUtil.GetEmbeddedAssetIDs(textAsset.Data);
|
||||
if(ids == null)
|
||||
return;
|
||||
|
||||
for(int i = 0; i < ids.Count; ++i)
|
||||
{
|
||||
if (ids[i] == UUID.Zero)
|
||||
continue;
|
||||
if (!UncertainAssetsUUIDs.Contains(ids[i]))
|
||||
UncertainAssetsUUIDs.Add(ids[i]);
|
||||
AddForInspection(ids[i]);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Record the uuids referenced by the given wearable asset
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user