mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
Remove the fallback for missing image pack support.
It's been in blender since 2.59 or so.
This commit is contained in:
parent
e25024c131
commit
196f2da585
1 changed files with 1 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue