13
0

fix luabindings for Editor.mouse_add_new_marker(), since API changed

This commit is contained in:
Paul Davis 2022-01-04 15:23:43 -07:00
parent b1f73d25bf
commit 8a49d274fb
2 changed files with 2 additions and 1 deletions

View File

@ -2615,6 +2615,7 @@ LuaBindings::common (lua_State* L)
.addConst ("IsAutoLoop", ARDOUR::Location::Flags(Location::IsAutoLoop))
.addConst ("IsHidden", ARDOUR::Location::Flags(Location::IsHidden))
.addConst ("IsCDMarker", ARDOUR::Location::Flags(Location::IsCDMarker))
.addConst ("IsCueMarker", ARDOUR::Location::Flags(Location::IsCueMarker))
.addConst ("IsRangeMarker", ARDOUR::Location::Flags(Location::IsRangeMarker))
.addConst ("IsSessionRange", ARDOUR::Location::Flags(Location::IsSessionRange))
.addConst ("IsSkip", ARDOUR::Location::Flags(Location::IsSkip))

View File

@ -2,6 +2,6 @@ ardour { ["type"] = "EditorAction", name = "Add CD marker" }
function
factory ()
return function ()
Editor:mouse_add_new_marker (Session:transport_sample(), true)
Editor:mouse_add_new_marker (Session:transport_sample(), Location.IsCDMarker)
end
end