File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1666,10 +1666,11 @@ BARS.defineActions(function() {
16661666 if ( ! animator [ channel ] ?. length ) continue ;
16671667 if ( ! animator . channels [ channel ] . transform ) continue ;
16681668 let first = animator [ channel ] [ 0 ] ;
1669+ let expected = + ( channel === "scale" ) ;
16691670 // todo: add data points
16701671 if ( animator [ channel ] . length == 1 && first . data_points . length == 1 && ( response . selection != 'selected_keyframes' || first . selected ) ) {
16711672 let value = first . getArray ( ) ;
1672- if ( ! value [ 0 ] && ! value [ 1 ] && ! value [ 2 ] ) {
1673+ if ( value . allAre ( v => v === expected ) ) {
16731674 first . remove ( ) ;
16741675 continue ;
16751676 }
@@ -1733,7 +1734,7 @@ BARS.defineActions(function() {
17331734 }
17341735 }
17351736 } else if ( ! prev && ! next ) {
1736- if ( d_kf . allAre ( val => ! val ) ) {
1737+ if ( d_kf . allAre ( val => val === expected ) ) {
17371738 remove = true ;
17381739 } else {
17391740 kf . time = 0 ;
You can’t perform that action at this time.
0 commit comments