mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 00:30:12 +08:00
[as3] Fixed error message when passing the wrong object to Atlas constructor. Closes #1684.
This commit is contained in:
parent
c55b20d4fa
commit
bcfff2d3c8
@ -45,7 +45,7 @@ package spine.atlas {
|
||||
else if (object is ByteArray)
|
||||
load(ByteArray(object).readUTFBytes(ByteArray(object).length), textureLoader);
|
||||
else
|
||||
throw new ArgumentError("object must be a TextureAtlas or AttachmentLoader.");
|
||||
throw new ArgumentError("object must be a string or ByteArray containing .atlas data.");
|
||||
}
|
||||
|
||||
protected function load(atlasText : String, textureLoader : TextureLoader) : void {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user