Remove duplicate call to render the context.
[synfig.git] / synfig-core / trunk / src / modules / example / metaballs.cpp
index 5559f93..6d9f959 100644 (file)
@@ -1,6 +1,6 @@
 /* === S Y N F I G ========================================================= */
 /*!    \file metaballs.cpp
-**     \brief Implements metaballs
+**     \brief Implementation of the "Metaballs" layer
 **
 **     $Id$
 **
@@ -53,8 +53,8 @@ using namespace synfig;
 
 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$");
 
@@ -73,19 +73,19 @@ Metaballs::Metaballs():
 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;
        }
 
-       if(     param=="weights" && value.same_as(weights))
+       if(     param=="weights" && value.same_type_as(weights))
        {
                weights = value;
                return true;
        }
 
-       if(     param=="radii" && value.same_as(radii))
+       if(     param=="radii" && value.same_type_as(radii))
        {
                radii = value;
                return true;
@@ -199,12 +199,6 @@ Metaballs::accelerated_render(Context context,Surface *surface,int quality, cons
 
        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;