Browse Source

4PointCutting: Really abort execution when markers don't specify a valid region (missing return statement)

master
Ludwig Frühschütz 4 years ago
parent
commit
f7734e9511
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      4PointCutting/4Pcut_execute.lua

+ 2
- 0
4PointCutting/4Pcut_execute.lua View File

@ -125,8 +125,10 @@ if edit_mode <= 0 then
return
elseif (edit_mode == 1 or edit_mode == 2 or edit_mode == 5) and (mark_srcin_pos >= mark_srcout_pos) then
msg('SRC-IN Marker must be set left of SRC-OUT marker! Aborting.')
return
elseif (edit_mode == 3 or edit_mode == 4 or edit_mode == 5) and (mark_dstin_pos >= mark_dstout_pos) then
msg('DST-IN Marker must be set left of DST-OUT marker! Aborting.')
return
end
-- Do stuff before actual edits...


Loading…
Cancel
Save