mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
Changing the AssetBase constructors to avoid initializing assets with an unknown asset type, and log an error if it ever does happen
This commit is contained in:
@@ -888,10 +888,7 @@ namespace OpenSim.Framework.Capabilities
|
||||
}
|
||||
|
||||
AssetBase asset;
|
||||
asset = new AssetBase();
|
||||
asset.FullID = assetID;
|
||||
asset.Type = assType;
|
||||
asset.Name = assetName;
|
||||
asset = new AssetBase(assetID, assetName, assType);
|
||||
asset.Data = data;
|
||||
if (AddNewAsset != null)
|
||||
AddNewAsset(asset);
|
||||
|
||||
Reference in New Issue
Block a user