diff --git a/lime/project/ProjectXMLParser.hx b/lime/project/ProjectXMLParser.hx index dc9ae42e5..f5d31866f 100644 --- a/lime/project/ProjectXMLParser.hx +++ b/lime/project/ProjectXMLParser.hx @@ -531,7 +531,21 @@ class ProjectXMLParser extends HXProject { } else if (element.has.type) { - type = Reflect.field (AssetType, substitute (element.att.type).toUpperCase ()); + var typeName = substitute (element.att.type); + + if (Reflect.hasField (AssetType, typeName.toUpperCase ())) { + + type = Reflect.field (AssetType, typeName.toUpperCase ()); + + } else if (typeName == "bytes") { + + type = AssetType.BINARY; + + } else { + + LogHelper.warn ("Ignoring unknown asset type \"" + typeName + "\""); + + } }