From 196f2da585642280c5a2efa19b82317336e132d3 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 17 Apr 2012 13:10:21 +0900 Subject: [PATCH] Remove the fallback for missing image pack support. It's been in blender since 2.59 or so. --- tools/io_mesh_qfmdl/import_mdl.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tools/io_mesh_qfmdl/import_mdl.py b/tools/io_mesh_qfmdl/import_mdl.py index 257881be3..7bdb023f0 100644 --- a/tools/io_mesh_qfmdl/import_mdl.py +++ b/tools/io_mesh_qfmdl/import_mdl.py @@ -85,8 +85,7 @@ def load_skins(mdl): p[l + 2] = c[2] / 255.0 p[l + 3] = 1.0 img.pixels[:] = p[:] - if hasattr(img, "pack"): - img.pack(True) + img.pack(True) mdl.images=[] for i, skin in enumerate(mdl.skins): @@ -289,10 +288,6 @@ def import_mdl(operator, context, filepath): bpy.context.scene.objects.active = mdl.obj mdl.obj.select = True setup_skins (mdl, uvs) - if mdl.images and not hasattr(mdl.images[0], "pack"): - operator.report({'WARNING'}, - "Unable to pack skins. They must be packed by hand." - +" Some may have been lost") if len(mdl.frames) > 1 or mdl.frames[0].type: build_shape_keys(mdl) merge_frames(mdl)