From c09a1b942544b6670794f2600b8c5cda1f4fa2e3 Mon Sep 17 00:00:00 2001 From: MonkeyBars3k <91908907+MonkeyBars3k@users.noreply.github.com> Date: Wed, 22 Feb 2023 10:38:33 -0600 Subject: [PATCH] Issue 342 --- ... 'Edit' later to reveal contained items & make changes.lua | 4 ++-- Superglue/MB_Superglue-Utils.lua | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Superglue/MB_Superglue - Glue - Nondestructively glue selected item(s) into Superitem. Use 'Edit' later to reveal contained items & make changes.lua b/Superglue/MB_Superglue - Glue - Nondestructively glue selected item(s) into Superitem. Use 'Edit' later to reveal contained items & make changes.lua index 73dc514..affa280 100644 --- a/Superglue/MB_Superglue - Glue - Nondestructively glue selected item(s) into Superitem. Use 'Edit' later to reveal contained items & make changes.lua +++ b/Superglue/MB_Superglue - Glue - Nondestructively glue selected item(s) into Superitem. Use 'Edit' later to reveal contained items & make changes.lua @@ -1,7 +1,7 @@ -- @description MB_Superglue: Reversible, nondestructive glue and nesting pooled audio for Reaper -- @author MonkeyBars --- @version 1.844 --- @changelog Add Pool ID to undo string (https://github.com/MonkeyBars3k/ReaScripts/issues/290); Add link to Github ReadMe to Options window (https://github.com/MonkeyBars3k/ReaScripts/issues/311); Item Info: For Superitem, add list of siblings with positions (https://github.com/MonkeyBars3k/ReaScripts/issues/339) +-- @version 1.845 +-- @changelog Smart Action: Cancelling from off-screen warning throws undo string error (https://github.com/MonkeyBars3k/ReaScripts/issues/342) -- @provides [main] . -- [main] MB_Superglue - Edit - Reveal contained item(s) from selected Superitem previously glued by Superglue, retaining ability to Glue back to same Pool.lua -- [main] MB_Superglue - Options - Display - Background images on new Superglue items - Superitems diagonal, contained items horizontal stripes (On-Off).lua diff --git a/Superglue/MB_Superglue-Utils.lua b/Superglue/MB_Superglue-Utils.lua index ae8d700..a6f1087 100644 --- a/Superglue/MB_Superglue-Utils.lua +++ b/Superglue/MB_Superglue-Utils.lua @@ -4015,7 +4015,9 @@ function initSmartAction(edit_or_unglue) return end - _smart_action_undo_block_string = _smart_action_undo_block_string .. " - Pool #" .. pool_id + if pool_id then + _smart_action_undo_block_string = _smart_action_undo_block_string .. " - Pool #" .. pool_id + end reaper.Undo_EndBlock(_smart_action_undo_block_string, _api_include_all_undo_states) end