projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change the default 'toggle onion skin' keyboard shortcut from control-o (which is...
[synfig.git]
/
synfig-core
/
trunk
/
src
/
modules
/
lyr_std
/
shade.cpp
diff --git
a/synfig-core/trunk/src/modules/lyr_std/shade.cpp
b/synfig-core/trunk/src/modules/lyr_std/shade.cpp
index
bee4754
..
d37409f
100644
(file)
--- a/
synfig-core/trunk/src/modules/lyr_std/shade.cpp
+++ b/
synfig-core/trunk/src/modules/lyr_std/shade.cpp
@@
-1,8
+1,8
@@
/* === S Y N F I G ========================================================= */
/*! \file shade.cpp
/* === S Y N F I G ========================================================= */
/*! \file shade.cpp
-** \brief
Template Head
er
+** \brief
Implementation of the "Shade" lay
er
**
**
-** $Id
: shade.cpp,v 1.2 2005/01/24 03:08:17 darco Exp
$
+** $Id$
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
@@
-53,9
+53,7
@@
using namespace std;
/*#define TYPE_BOX 0
#define TYPE_FASTGUASSIAN 1
/*#define TYPE_BOX 0
#define TYPE_FASTGUASSIAN 1
-#define TYPE_FASTGAUSSIAN 1
#define TYPE_CROSS 2
#define TYPE_CROSS 2
-#define TYPE_GUASSIAN 3
#define TYPE_GAUSSIAN 3
#define TYPE_DISC 4
*/
#define TYPE_GAUSSIAN 3
#define TYPE_DISC 4
*/
@@
-64,10
+62,10
@@
using namespace std;
SYNFIG_LAYER_INIT(Layer_Shade);
SYNFIG_LAYER_SET_NAME(Layer_Shade,"shade");
SYNFIG_LAYER_INIT(Layer_Shade);
SYNFIG_LAYER_SET_NAME(Layer_Shade,"shade");
-SYNFIG_LAYER_SET_LOCAL_NAME(Layer_Shade,_("Shade"));
-SYNFIG_LAYER_SET_CATEGORY(Layer_Shade,_("Stylize"));
+SYNFIG_LAYER_SET_LOCAL_NAME(Layer_Shade,
N
_("Shade"));
+SYNFIG_LAYER_SET_CATEGORY(Layer_Shade,
N
_("Stylize"));
SYNFIG_LAYER_SET_VERSION(Layer_Shade,"0.2");
SYNFIG_LAYER_SET_VERSION(Layer_Shade,"0.2");
-SYNFIG_LAYER_SET_CVS_ID(Layer_Shade,"$Id
: shade.cpp,v 1.2 2005/01/24 03:08:17 darco Exp
$");
+SYNFIG_LAYER_SET_CVS_ID(Layer_Shade,"$Id$");
/* -- F U N C T I O N S ----------------------------------------------------- */
/* -- F U N C T I O N S ----------------------------------------------------- */
@@
-92,7
+90,9
@@
Layer_Shade::set_param(const String ¶m, const ValueBase &value)
{
IMPORT_PLUS(size,clamp(size));
IMPORT(type);
{
IMPORT_PLUS(size,clamp(size));
IMPORT(type);
- IMPORT(color);
+ IMPORT_PLUS(color, { if (color.get_a() == 0) { if (converted_blend_) {
+ set_blend_method(Color::BLEND_ALPHA_OVER);
+ color.set_a(1); } else transparent_color_ = true; } });
IMPORT(offset);
IMPORT(invert);
IMPORT(offset);
IMPORT(invert);