Remove duplicate call to render the context.
[synfig.git] / synfig-core / trunk / src / modules / example / metaballs.cpp
index c0a9a50..6d9f959 100644 (file)
@@ -1,8 +1,8 @@
 /* === S Y N F I G ========================================================= */
 /*!    \file metaballs.cpp
-**     \brief Implements metaballs
+**     \brief Implementation of the "Metaballs" layer
 **
-**     $Id: metaballs.cpp,v 1.1.1.1 2005/01/04 01:23:09 darco Exp $
+**     $Id$
 **
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
@@ -53,10 +53,10 @@ 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: metaballs.cpp,v 1.1.1.1 2005/01/04 01:23:09 darco Exp $");
+SYNFIG_LAYER_SET_CVS_ID(Metaballs,"$Id$");
 
 /* === P R O C E D U R E S ================================================= */
 
@@ -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;