Skip to content

Commit

Permalink
[starling] You can now override StarlingAtlasAttachmentLoader#getText…
Browse files Browse the repository at this point in the history
…ure to provide your own texture for a path
  • Loading branch information
badlogic committed Jul 19, 2017
1 parent 262bc26 commit ea7dbec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ package spine.starling {
}

public function newRegionAttachment(skin : Skin, name : String, path : String) : RegionAttachment {
var texture : Texture = atlas.getTexture(path);
var texture : Texture = getTexture(path);
if (texture == null)
throw new Error("Region not found in Starling atlas: " + path + " (region attachment: " + name + ")");
var attachment : RegionAttachment = new RegionAttachment(name);
Expand Down Expand Up @@ -96,7 +96,7 @@ package spine.starling {
}

public function newMeshAttachment(skin : Skin, name : String, path : String) : MeshAttachment {
var texture : Texture = atlas.getTexture(path);
var texture : Texture = getTexture(path);
if (texture == null)
throw new Error("Region not found in Starling atlas: " + path + " (mesh attachment: " + name + ")");
var rotated : Boolean = atlas.getRotation(path);
Expand Down

0 comments on commit ea7dbec

Please sign in to comment.