Page MenuHome

Clean Keyframes removes the channels.
Closed, ResolvedPublic

Description

System Information
Ubuntu 14.04 x86_64 Linux 3.16.7.1-amdfx

Blender Version
Broken: 2.76 48f7dd6
Worked: 2.75a c27589e

Short description of error
Now we have a new operator, "Clean Channels", which removes the channels in which there is no animation.
Old operator, "Clean Keyframes", always left one key in the channel, in such cases. But now it works the same, as "Clean Channels", and remove channel.

https://youtu.be/s_r2rxgNtdA

Event Timeline

my369@yandex.ru (acvarium) updated the task description. (Show Details)
my369@yandex.ru (acvarium) raised the priority of this task from to Needs Triage by Developer.

Why do you need that 1 key channel?

If I switch to another action, and I do not have that 1 key per channel, it can damage my animation.

It seems that the bug only reproduce after a run "Clean Channels" operator. It runs bpy.ops.graph.clean(channels=True), and save property "channels" as True for next calling bpy.ops.graph.clean()

The operator "Clean Keyframes", in this case, have to called with bpy.ops.graph.clean(channels=False)

Sounds like both clean channels and clean keys are actually the same operator, and probably blender's operator memory is saving the last used option. Humnf

Bastien Montagne (mont29) triaged this task as Confirmed, Medium priority.Oct 13 2015, 12:55 PM

That is easy fix (for once ;) ).

How about menu, that appear if pass 'x' or 'delete' in Dope Sheet and Graph Editor?

line 425 in release/scripts/startup/bl_ui/space_dopesheet.py and 296 in release/scripts/startup/bl_ui/space_graph.py

Good catch, fixed in rB0426f74.