span keyframes toggle, rect_audio tweaks, fix playbackengine clear output for audio...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / maskautos.C
index 6904d81ea7f51cbfefc3b80c49ea14a6a322df5b..bac0d851d965301f13508d3454e565a952d54f27 100644 (file)
@@ -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();