Exemplo n.º 1
0
        public void AddPreloadAsset(UUID vAssetID)
        {
            if (this.rexSceneProperties.PreloadAssetDictionary.ContainsKey(vAssetID))
                return;

            AssetBase tempAsset = scene.AssetService.Get(vAssetID.ToString());
            if (tempAsset != null)
            {
                this.rexSceneProperties.PreloadAssetDictionary.Add(tempAsset.FullID, (uint)vAssetID.GetULong());
            }
            else
            {
                m_log.Error("[REXSCENEPROPERTIES]: RexAddPreloadAsset failed, asset not found from the asset cache. Asset: " + tempAsset.FullID.ToString());
            }
        }