Skip to content

Commit

Permalink
Removed TODOs for time_dilation == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmabit committed Jul 25, 2015
1 parent c2b5bac commit 9a5f4d6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions synfig-studio/src/gui/cellrenderer/cellrenderer_timetrack.cpp
Expand Up @@ -323,7 +323,6 @@ CellRenderer_TimeTrack::render_vfunc(
Time t = t_orig - time_offset;
if (time_dilation!=0)
t = t / time_dilation;
// todo: What if time_dilation == 0?
if(t<adjustment->get_lower() || t>adjustment->get_upper()) continue;

//if it found it... (might want to change comparison, and optimize
Expand Down Expand Up @@ -753,7 +752,6 @@ CellRenderer_TimeTrack::activate_vfunc(
{
bool delmode = (mode & DELETE_MASK) && !(mode & COPY_MASK);
const synfig::Time time_dilation = get_time_dilation_from_vdesc(sel_value);
// todo: What if time_dilation == 0?
deltatime = (actual_time - actual_dragtime) * time_dilation;
if(sel_times.size() != 0 && (delmode || !deltatime.is_equal(Time(0))))
{
Expand Down

0 comments on commit 9a5f4d6

Please sign in to comment.