projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Default the time sub-parameter to 0f. Check that the valuenode has a parent canvas...
[synfig.git]
/
synfig-core
/
trunk
/
src
/
modules
/
example
/
filledrect.cpp
diff --git
a/synfig-core/trunk/src/modules/example/filledrect.cpp
b/synfig-core/trunk/src/modules/example/filledrect.cpp
index
72125ee
..
3aec7d5
100644
(file)
--- a/
synfig-core/trunk/src/modules/example/filledrect.cpp
+++ b/
synfig-core/trunk/src/modules/example/filledrect.cpp
@@
-1,6
+1,6
@@
/* === S Y N F I G ========================================================= */
/*! \file filledrect.cpp
/* === S Y N F I G ========================================================= */
/*! \file filledrect.cpp
-** \brief
Template Head
er
+** \brief
Implementation of the "Rectangle" lay
er
**
** $Id$
**
**
** $Id$
**
@@
-53,8
+53,8
@@
using namespace synfig;
SYNFIG_LAYER_INIT(FilledRect);
SYNFIG_LAYER_SET_NAME(FilledRect,"rectangle");
SYNFIG_LAYER_INIT(FilledRect);
SYNFIG_LAYER_SET_NAME(FilledRect,"rectangle");
-SYNFIG_LAYER_SET_LOCAL_NAME(FilledRect,_("Rectangle"));
-SYNFIG_LAYER_SET_CATEGORY(FilledRect,_("Geometry"));
+SYNFIG_LAYER_SET_LOCAL_NAME(FilledRect,
N
_("Rectangle"));
+SYNFIG_LAYER_SET_CATEGORY(FilledRect,
N
_("Geometry"));
SYNFIG_LAYER_SET_VERSION(FilledRect,"0.1");
SYNFIG_LAYER_SET_CVS_ID(FilledRect,"$Id$");
SYNFIG_LAYER_SET_VERSION(FilledRect,"0.1");
SYNFIG_LAYER_SET_CVS_ID(FilledRect,"$Id$");
@@
-82,8
+82,8
@@
FilledRect::set_param(const String & param, const ValueBase &value)
IMPORT(color);
IMPORT(point1);
IMPORT(point2);
IMPORT(color);
IMPORT(point1);
IMPORT(point2);
- IMPORT
(feather_x
);
- IMPORT
(feather_y
);
+ IMPORT
_PLUS(feather_x, if(feather_x<0)feather_x=0;
);
+ IMPORT
_PLUS(feather_y, if(feather_y<0)feather_y=0;
);
IMPORT(bevel);
IMPORT(bevCircle);
IMPORT(bevel);
IMPORT(bevCircle);