diff --git a/opendm/objpacker/imagepacker/imagepacker.py b/opendm/objpacker/imagepacker/imagepacker.py index 9031d28d..2090d73f 100644 --- a/opendm/objpacker/imagepacker/imagepacker.py +++ b/opendm/objpacker/imagepacker/imagepacker.py @@ -203,7 +203,7 @@ def pack(obj, background=(0,0,0,0), format="PNG", extents=None): # using filename so we can pass back UV info without storing it in image blocks.append(Block(w, h, data=(filename, mat, changes))) -use_3dmesh + # sort by width, descending (widest first) blocks.sort(key=lambda block: -block.w)