From 360e11c8b37d05b6af1a765cdf98c210ef5b97a8 Mon Sep 17 00:00:00 2001 From: dooglus Date: Thu, 17 Apr 2008 06:51:37 +0000 Subject: [PATCH] Add parameter 'add_width' to the plant layer. It's on by default, and means to scale the velocity of a plant's shoot by the width of the bline at that point. git-svn-id: http://svn.voria.com/code@2019 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/modules/mod_particle/plant.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/synfig-core/trunk/src/modules/mod_particle/plant.cpp b/synfig-core/trunk/src/modules/mod_particle/plant.cpp index a7df926..47b13a3 100644 --- a/synfig-core/trunk/src/modules/mod_particle/plant.cpp +++ b/synfig-core/trunk/src/modules/mod_particle/plant.cpp @@ -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; } -- 2.7.4