From: dooglus Date: Wed, 26 Dec 2007 15:33:14 +0000 (+0000) Subject: Fix the timeloop layer for negative durations so that output = ("Link" at "Link Time... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=23f121ceedc3e7ff419c469a634e9d664fe69dcb;p=synfig.git Fix the timeloop layer for negative durations so that output = ("Link" at "Link Time") when time = "Local Time" always. git-svn-id: http://svn.voria.com/code@1228 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/valuenode_timeloop.cpp b/synfig-core/trunk/src/synfig/valuenode_timeloop.cpp index 913a4c6..3ad2b8f 100644 --- a/synfig-core/trunk/src/synfig/valuenode_timeloop.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_timeloop.cpp @@ -163,13 +163,14 @@ ValueNode_TimeLoop::operator()(Time t)const { t -= local_time; t -= floor(t / duration) * duration; - t = link_time + t; + t = link_time + t; } else { + duration = -duration; t -= local_time; t -= floor(t / duration) * duration; - t = link_time + duration - t; + t = link_time - t; } return (*link_)(t);