Merge pull request #1626 from dpomier/patch-1
Allow Assets.registerLibrary() for default library
This commit is contained in:
@@ -492,6 +492,11 @@ class Assets
|
|||||||
|
|
||||||
public static function registerLibrary(name:String, library:AssetLibrary):Void
|
public static function registerLibrary(name:String, library:AssetLibrary):Void
|
||||||
{
|
{
|
||||||
|
if (name == null || name == "")
|
||||||
|
{
|
||||||
|
name = "default";
|
||||||
|
}
|
||||||
|
|
||||||
if (libraries.exists(name))
|
if (libraries.exists(name))
|
||||||
{
|
{
|
||||||
if (libraries.get(name) == library)
|
if (libraries.get(name) == library)
|
||||||
|
|||||||
Reference in New Issue
Block a user