From 138043bf94a6eebdd3edacf5318d9d9a697a8d0e Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Fri, 27 Jan 2017 16:21:56 -0800 Subject: [PATCH] Fix Assets.getBytes for a cached text asset --- lime/utils/AssetLibrary.hx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lime/utils/AssetLibrary.hx b/lime/utils/AssetLibrary.hx index e4aec0493..1a97297bb 100644 --- a/lime/utils/AssetLibrary.hx +++ b/lime/utils/AssetLibrary.hx @@ -178,6 +178,12 @@ class AssetLibrary { return cachedBytes.get (id); + } else if (cachedText.exists (id)) { + + var bytes = Bytes.ofString (cachedText.get (id)); + cachedBytes.set (id, bytes); + return bytes; + } else if (classTypes.exists (id)) { #if flash