From 2c8331414db790824df9e9e2ea6e25ad7aa39b99 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 16 Apr 2013 21:06:49 +0000 Subject: Support for 'colorsecond' in particle scripts, have trail style particles use a single texture for the entire length instead of repeating it. --- src/render/particlesystemscript.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/render/particlesystemscript.cc') 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; -- cgit v1.2.3