Add parameter 'add_width' to the plant layer. It's on by default, and means to scale...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 17 Apr 2008 06:51:37 +0000 (06:51 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 17 Apr 2008 06:51:37 +0000 (06:51 +0000)
git-svn-id: http://svn.voria.com/code@2019 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/modules/mod_particle/plant.cpp

index a7df926..47b13a3 100644 (file)
@@ -313,6 +313,7 @@ Plant::set_param(const String & param, const ValueBase &value)
        IMPORT(size);
        IMPORT(size_as_alpha);
        IMPORT(reverse);
+       IMPORT(use_width);
 
        IMPORT_AS(origin,"offset");
 
@@ -361,9 +362,9 @@ Plant::get_param(const String& param)const
        EXPORT(random_factor);
        EXPORT(drag);
        EXPORT(size);
-
        EXPORT(size_as_alpha);
        EXPORT(reverse);
+       EXPORT(use_width);
 
        EXPORT_NAME();
 
@@ -461,6 +462,11 @@ Plant::get_param_vocab()const
                .set_description(_("Drag slows the growth"))
        );
 
+       ret.push_back(ParamDesc("use_width")
+               .set_local_name(_("Use Width"))
+               .set_description(_("Scale the velocity by the bline's width"))
+       );
+
        return ret;
 }