diff options
author | Stijn Buys <ingar@osirion.org> | 2013-04-16 21:06:49 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-04-16 21:06:49 +0000 |
commit | 2c8331414db790824df9e9e2ea6e25ad7aa39b99 (patch) | |
tree | 387bd65dc1d0c6fde5942dce0591c430a6eb9053 /src/render/particlesystemscript.cc | |
parent | c625314940a3e41c28aff7a311ccd7ad2d0bf8d7 (diff) |
Support for 'colorsecond' in particle scripts, have trail style particles use a single texture for the entire length instead of repeating it.
Diffstat (limited to 'src/render/particlesystemscript.cc')
-rw-r--r-- | src/render/particlesystemscript.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/render/particlesystemscript.cc b/src/render/particlesystemscript.cc index f78fa88..03ce86e 100644 --- a/src/render/particlesystemscript.cc +++ b/src/render/particlesystemscript.cc @@ -214,11 +214,15 @@ ParticleSystemScript *ParticleSystemScript::load(const std::string &label) } else if (inifile.got_key_long("timeout", l)) { ejector->set_timeout((unsigned long) l); - continue; + continue; } else if (inifile.got_key_color("color", ejector->get_color())) { continue; + } else if (inifile.got_key_color("colorsecond", ejector->get_color_second())) { + ejector->set_color_interpolated(true); + continue; + } else if (inifile.got_key_bool("engine", b)) { ejector->set_engine(b); continue; |