X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_timeloop.cpp;h=8bec653b01489b9e1aa7733fb6c0cfeb9fe04fc2;hb=96aa44af8c1800bcfc1308b55d40a2da419221d9;hp=3ad2b8f2319be270e29a747f1ead87c4a0f28b6a;hpb=23f121ceedc3e7ff419c469a634e9d664fe69dcb;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_timeloop.cpp b/synfig-core/trunk/src/synfig/valuenode_timeloop.cpp index 3ad2b8f..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