projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove duplicate call to render the context.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
modules
/
example
/
metaballs.cpp
diff --git
a/synfig-core/trunk/src/modules/example/metaballs.cpp
b/synfig-core/trunk/src/modules/example/metaballs.cpp
index
5559f93
..
6d9f959
100644
(file)
--- a/
synfig-core/trunk/src/modules/example/metaballs.cpp
+++ b/
synfig-core/trunk/src/modules/example/metaballs.cpp
@@
-1,6
+1,6
@@
/* === S Y N F I G ========================================================= */
/*! \file metaballs.cpp
/* === S Y N F I G ========================================================= */
/*! \file metaballs.cpp
-** \brief Implement
s metaballs
+** \brief Implement
ation of the "Metaballs" layer
**
** $Id$
**
**
** $Id$
**
@@
-53,8
+53,8
@@
using namespace synfig;
SYNFIG_LAYER_INIT(Metaballs);
SYNFIG_LAYER_SET_NAME(Metaballs,"metaballs");
SYNFIG_LAYER_INIT(Metaballs);
SYNFIG_LAYER_SET_NAME(Metaballs,"metaballs");
-SYNFIG_LAYER_SET_LOCAL_NAME(Metaballs,_("Metaballs"));
-SYNFIG_LAYER_SET_CATEGORY(Metaballs,_("Default"));
+SYNFIG_LAYER_SET_LOCAL_NAME(Metaballs,
N
_("Metaballs"));
+SYNFIG_LAYER_SET_CATEGORY(Metaballs,
N
_("Default"));
SYNFIG_LAYER_SET_VERSION(Metaballs,"0.1");
SYNFIG_LAYER_SET_CVS_ID(Metaballs,"$Id$");
SYNFIG_LAYER_SET_VERSION(Metaballs,"0.1");
SYNFIG_LAYER_SET_CVS_ID(Metaballs,"$Id$");
@@
-73,19
+73,19
@@
Metaballs::Metaballs():
bool
Metaballs::set_param(const String & param, const ValueBase &value)
{
bool
Metaballs::set_param(const String & param, const ValueBase &value)
{
- if( param=="centers" && value.same_as(centers))
+ if( param=="centers" && value.same_
type_
as(centers))
{
centers = value;
return true;
}
{
centers = value;
return true;
}
- if( param=="weights" && value.same_as(weights))
+ if( param=="weights" && value.same_
type_
as(weights))
{
weights = value;
return true;
}
{
weights = value;
return true;
}
- if( param=="radii" && value.same_as(radii))
+ if( param=="radii" && value.same_
type_
as(radii))
{
radii = value;
return true;
{
radii = value;
return true;
@@
-199,12
+199,6
@@
Metaballs::accelerated_render(Context context,Surface *surface,int quality, cons
SuperCallback supercb(cb,0,9000,10000);
SuperCallback supercb(cb,0,9000,10000);
- if(!context.accelerated_render(surface,quality,renddesc,&supercb))
- {
- if(cb)cb->error(strprintf(__FILE__"%d: Accelerated Renderer Failure",__LINE__));
- return false;
- }
-
Point pos(tl[0],tl[1]);
Real dens;
Point pos(tl[0],tl[1]);
Real dens;