projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New version 0.2 of the Time Loop layer. It uses the same parameters as the recently...
[synfig.git]
/
synfig-core
/
trunk
/
src
/
modules
/
lyr_std
/
rotate.cpp
diff --git
a/synfig-core/trunk/src/modules/lyr_std/rotate.cpp
b/synfig-core/trunk/src/modules/lyr_std/rotate.cpp
index
0aa35e2
..
f757f84
100644
(file)
--- a/
synfig-core/trunk/src/modules/lyr_std/rotate.cpp
+++ b/
synfig-core/trunk/src/modules/lyr_std/rotate.cpp
@@
-1,6
+1,8
@@
/* === S Y N F I G ========================================================= */
/*! \file rotate.cpp
/* === S Y N F I G ========================================================= */
/*! \file rotate.cpp
-** \brief Template Header
+** \brief Implementation of the "Rotate" layer
+**
+** $Id$
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
@@
-49,10
+51,10
@@
SYNFIG_LAYER_INIT(Rotate);
SYNFIG_LAYER_SET_NAME(Rotate,"rotate");
SYNFIG_LAYER_INIT(Rotate);
SYNFIG_LAYER_SET_NAME(Rotate,"rotate");
-SYNFIG_LAYER_SET_LOCAL_NAME(Rotate,_("Rotate"));
-SYNFIG_LAYER_SET_CATEGORY(Rotate,_("Transform"));
+SYNFIG_LAYER_SET_LOCAL_NAME(Rotate,
N
_("Rotate"));
+SYNFIG_LAYER_SET_CATEGORY(Rotate,
N
_("Transform"));
SYNFIG_LAYER_SET_VERSION(Rotate,"0.1");
SYNFIG_LAYER_SET_VERSION(Rotate,"0.1");
-SYNFIG_LAYER_SET_CVS_ID(Rotate,"$Id
: rotate.cpp,v 1.2 2005/01/24 05:00:18 darco Exp
$");
+SYNFIG_LAYER_SET_CVS_ID(Rotate,"$Id$");
/* === P R O C E D U R E S ================================================= */
/* === P R O C E D U R E S ================================================= */
@@
-77,7
+79,7
@@
Rotate::set_param(const String & param, const ValueBase &value)
{
IMPORT(origin);
{
IMPORT(origin);
- if(param=="amount" && value.same_as(amount))
+ if(param=="amount" && value.same_
type_
as(amount))
{
amount=value.get(amount);
sin_val=Angle::sin(amount).get();
{
amount=value.get(amount);
sin_val=Angle::sin(amount).get();