From 280ba2c50b1d04d2512ec93f6fc5bce8792b4247 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 11 Jan 2023 16:01:48 -0500 Subject: [PATCH] Remove typo --- opendm/objpacker/imagepacker/imagepacker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)