Skip to content

Commit

Permalink
Fixing breaking Blender API change for image.pack()
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaskelly committed Jun 22, 2019
1 parent 25ed76a commit 0e48599
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion io_scene_bsp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bl_info = {
'name': 'Quake engine BSP format',
'author': 'Joshua Skelton',
'version': (1, 0, 2),
'version': (1, 0, 3),
'blender': (2, 80, 0),
'location': 'File > Import-Export',
'description': 'Load a Quake engine BSP file.',
Expand Down
2 changes: 1 addition & 1 deletion io_scene_bsp/import_bsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def create_image(name, image_data):
else:
image = bpy.data.images.new(name, image_data.width, image_data.height)
image.pixels[:] = [p / 255 for p in image_data.pixels]
image.pack(as_png=True)
image.pack()

return image

Expand Down

0 comments on commit 0e48599

Please sign in to comment.