X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_timeloop.cpp;h=8bec653b01489b9e1aa7733fb6c0cfeb9fe04fc2;hb=01f655d3bb6e2d015dcf6918b1168cf82c81c41f;hp=913a4c6ab8ffe20112dab8cf08cad4b8fddabf62;hpb=e556a9e73eaf9af70f65f197de762d3b507f5d7e;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_timeloop.cpp b/synfig-core/trunk/src/synfig/valuenode_timeloop.cpp index 913a4c6..8bec653 100644 --- a/synfig-core/trunk/src/synfig/valuenode_timeloop.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_timeloop.cpp @@ -6,7 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** Copyright (c) 2007 Chris Moore +** Copyright (c) 2007, 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -60,8 +60,8 @@ ValueNode_TimeLoop::ValueNode_TimeLoop(const ValueNode::Handle &x): { set_link("link", x); set_link("link_time", ValueNode_Const::create(Time(0))); - set_link("local_time", ValueNode_Const::create(Time(1))); - set_link("duration", ValueNode_Const::create(Time(0))); + set_link("local_time", ValueNode_Const::create(Time(0))); + set_link("duration", ValueNode_Const::create(Time(1))); } ValueNode_TimeLoop* @@ -82,27 +82,25 @@ ValueNode_TimeLoop::~ValueNode_TimeLoop() } bool -ValueNode_TimeLoop::set_link_vfunc(int i,ValueNode::Handle x) +ValueNode_TimeLoop::set_link_vfunc(int i,ValueNode::Handle value) { - assert(i >= 0 && i < link_count()); + assert(i>=0 && i= 0 && i < link_count()); + assert(i>=0 && i= 0 && i < link_count()); + assert(i>=0 && i= 0 && i < link_count()); + assert(i>=0 && i