X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fmaskautos.C;h=bac0d851d965301f13508d3454e565a952d54f27;hp=6904d81ea7f51cbfefc3b80c49ea14a6a322df5b;hb=620f70a943c1f47880ec68a908aa03bf463e741f;hpb=8e69e9e7ab87fd5c273ce30a05c9973e786467d9 diff --git a/cinelerra-5.1/cinelerra/maskautos.C b/cinelerra-5.1/cinelerra/maskautos.C index 6904d81e..bac0d851 100644 --- a/cinelerra-5.1/cinelerra/maskautos.C +++ b/cinelerra-5.1/cinelerra/maskautos.C @@ -22,6 +22,7 @@ #include "automation.inc" #include "clip.h" #include "edl.h" +#include "edlsession.h" #include "localsession.h" #include "maskauto.h" #include "maskautos.h" @@ -50,7 +51,8 @@ void MaskAutos::update_parameter(MaskAuto *src) // Selection is always aligned to frame for masks // Create new keyframe if auto keyframes or replace entire keyframe. - if(selection_start == selection_end) + if( !edl->session->span_keyframes || + EQUIV(selection_start, selection_end) ) { // Search for keyframe to write to MaskAuto *dst = (MaskAuto*)get_auto_for_editing();