projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix unhandled exception when linking linkablevaluenodes
[synfig.git]
/
synfig-core
/
src
/
modules
/
mod_particle
/
plant.cpp
diff --git
a/synfig-core/src/modules/mod_particle/plant.cpp
b/synfig-core/src/modules/mod_particle/plant.cpp
index
47b13a3
..
7ffdfe3
100644
(file)
--- a/
synfig-core/src/modules/mod_particle/plant.cpp
+++ b/
synfig-core/src/modules/mod_particle/plant.cpp
@@
-111,6
+111,8
@@
Plant::Plant():
sync();
size_as_alpha=false;
reverse=true;
sync();
size_as_alpha=false;
reverse=true;
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
void
}
void
@@
-278,13
+280,14
@@
Plant::set_param(const String & param, const ValueBase &value)
bline=value;
bline_loop=value.get_loop();
needs_sync_=true;
bline=value;
bline_loop=value.get_loop();
needs_sync_=true;
-
+ set_param_static(param, value.get_static());
return true;
}
if(param=="seed" && value.same_type_as(int()))
{
random.set_seed(value.get(int()));
needs_sync_=true;
return true;
}
if(param=="seed" && value.same_type_as(int()))
{
random.set_seed(value.get(int()));
needs_sync_=true;
+ set_param_static(param, value.get_static());
return true;
}
IMPORT(origin);
return true;
}
IMPORT(origin);
@@
-348,7
+351,11
@@
ValueBase
Plant::get_param(const String& param)const
{
if(param=="seed")
Plant::get_param(const String& param)const
{
if(param=="seed")
- return random.get_seed();
+ {
+ ValueBase ret(random.get_seed());
+ ret.set_static(get_param_static(param));
+ return ret;
+ }
EXPORT(bline);
EXPORT(origin);
EXPORT(split_angle);
EXPORT(bline);
EXPORT(origin);
EXPORT(split_angle);