Skip to content

Commit

Permalink
457 - Disabled keyframes doesn't work well with drag and drop operati…
Browse files Browse the repository at this point in the history
…ons. Progress

In synfig-core, KeyframeList::insert_time, include deactivated kf while searching next.

Solve the reported bug.

But another one appear : previous deactivated kf now move during d&d operation !
  • Loading branch information
d-j-a-y committed Sep 2, 2014
1 parent 0556c23 commit 24c87b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synfig-core/src/synfig/keyframe.cpp
Expand Up @@ -246,7 +246,8 @@ KeyframeList::insert_time(const Time& location, const Time& delta)
return;
try
{
iterator iter(find_next(location));
// find next from time (location) including deactivated kf
iterator iter(find_next(location, false));
for(;iter!=end();++iter)
{
iter->set_time(iter->get_time()+delta);
Expand Down

0 comments on commit 24c87b8

Please sign in to comment.