diff --git a/contrib/hugin.lua b/contrib/hugin.lua index d69a8ad..9008b15 100644 --- a/contrib/hugin.lua +++ b/contrib/hugin.lua @@ -71,38 +71,59 @@ local function create_panorama(storage, image_table, extra_data) --finalize -- list of exported images local img_list + local img_set = {} -- reset and create image list img_list = "" - - for _,v in pairs(image_table) do + for k,v in pairs(image_table) do img_list = img_list ..v.. " " + table.insert(img_set, k) + end + + -- use first file as basename + table.sort(img_set, function(a,b) return a.filename