Skip to content

Commit 3033c52

Browse files
committed
Three small fixes (komments and avoid having a global variable)
- a comment about needing hugin installed - it's not the lua version that we check, it's the DT API version - declare "local img_list" here, and avoid having a global variable
1 parent 5909765 commit 3033c52

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

contrib/hugin.lua

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ HUGIN
2323
Add a new storage option to send images to hugin.
2424
Images are exported to darktable tmp dir first.
2525
26+
ADDITIANAL SOFTWARE NEEDED FOR THIS SCRIPT
27+
* hugin
28+
2629
USAGE
2730
* require this file from your main luarc config file.
2831
@@ -31,18 +34,18 @@ This plugin will add a new storage option and calls hugin after export.
3134

3235
dt = require "darktable"
3336

34-
-- should work with lua version 2.0.0
37+
-- should work with darktable API version 2.0.0
3538
dt.configuration.check_version(...,{2,0,0})
3639

37-
-- list of exported images
38-
local img_list
39-
4040
dt.register_storage("module_hugin","Hugin panorama",
4141
function(storage, image, format, filename,
4242
number,total,high_quality,extra_data)
4343
dt.print("Export to hugin " .. tostring(number).."/"..tostring(total))
4444
end,
4545
function(storage,image_table,extra_data) --finalize
46+
-- list of exported images
47+
local img_list
48+
4649
-- reset and create image list
4750
img_list = ""
4851

0 commit comments

Comments
 (0)