Skip to content

Commit

Permalink
Update pixijs_import_spritesheet.gd
Browse files Browse the repository at this point in the history
  • Loading branch information
piratesephiroth authored Mar 2, 2019
1 parent 2ee9842 commit 751ee48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func create_atlas_texture(sheetFolder, sprite, sprite_name, image, r_gen_files):
texture.atlas = image
var name = sheetFolder+"/"+sprite_name.get_basename()+".tres"
texture.region = Rect2(sprite.frame.x, sprite.frame.y, sprite.frame.w, sprite.frame.h)
texture.margin = Rect2(sprite.spriteSourceSize.x, sprite.spriteSourceSize.y, sprite.spriteSourceSize.w - sprite.frame.w, sprite.spriteSourceSize.h - sprite.frame.h)
texture.margin = Rect2(sprite.spriteSourceSize.x, sprite.spriteSourceSize.y, sprite.sourceSize.w - sprite.frame.w, sprite.sourceSize.h - sprite.frame.h)
r_gen_files.push_back(name)
return save_resource(name, texture)

Expand Down

0 comments on commit 751ee48

Please sign in to comment.