projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo: 'suposidly' -> 'supposedly'.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
valuenode_gradientrotate.cpp
diff --git
a/synfig-core/trunk/src/synfig/valuenode_gradientrotate.cpp
b/synfig-core/trunk/src/synfig/valuenode_gradientrotate.cpp
index
187070a
..
9449d71
100644
(file)
--- a/
synfig-core/trunk/src/synfig/valuenode_gradientrotate.cpp
+++ b/
synfig-core/trunk/src/synfig/valuenode_gradientrotate.cpp
@@
-6,6
+6,7
@@
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2007 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
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
@@
-51,10
+52,10
@@
using namespace synfig;
/* === M E T H O D S ======================================================= */
/* === M E T H O D S ======================================================= */
-synfig::ValueNode_GradientRotate::ValueNode_GradientRotate():
+synfig::ValueNode_GradientRotate::ValueNode_GradientRotate(
const Gradient& x
):
LinkableValueNode(synfig::ValueBase::TYPE_GRADIENT)
{
LinkableValueNode(synfig::ValueBase::TYPE_GRADIENT)
{
- set_link("gradient",ValueNode_Const::create(
Gradient()
));
+ set_link("gradient",ValueNode_Const::create(
x
));
set_link("offset",ValueNode_Const::create(Real(0)));
DCAST_HACK_ENABLE();
}
set_link("offset",ValueNode_Const::create(Real(0)));
DCAST_HACK_ENABLE();
}
@@
-62,7
+63,7
@@
synfig::ValueNode_GradientRotate::ValueNode_GradientRotate():
LinkableValueNode*
ValueNode_GradientRotate::create_new()const
{
LinkableValueNode*
ValueNode_GradientRotate::create_new()const
{
- return new ValueNode_GradientRotate();
+ return new ValueNode_GradientRotate(
Gradient()
);
}
ValueNode_GradientRotate*
}
ValueNode_GradientRotate*
@@
-75,8
+76,7
@@
ValueNode_GradientRotate::create(const ValueBase& x)
throw runtime_error("synfig::ValueNode_GradientRotate:Bad type "+ValueBase::type_name(id));
}
throw runtime_error("synfig::ValueNode_GradientRotate:Bad type "+ValueBase::type_name(id));
}
- ValueNode_GradientRotate* value_node=new ValueNode_GradientRotate();
- value_node->set_gradient(ValueNode_Const::create(x.get(Gradient())));
+ ValueNode_GradientRotate* value_node=new ValueNode_GradientRotate(x.get(Gradient()));
assert(value_node->get_type()==id);
assert(value_node->get_type()==id);
@@
-183,8
+183,8
@@
ValueNode_GradientRotate::link_name(int i)const
return "gradient";
case 1:
return "offset";
return "gradient";
case 1:
return "offset";
+ default: return String();
}
}
- return String();
}
int
}
int