13
0

fix up SVAModifier constructors

This commit is contained in:
Paul Davis 2014-12-14 23:41:31 -05:00
parent 0bdfa05fb3
commit 3fa4063d9b
2 changed files with 5 additions and 4 deletions

View File

@ -52,7 +52,8 @@ class LIBCANVAS_API SVAModifier
public:
SVAModifier (std::string const &);
SVAModifier (double ss, double vv, double aa) : s (ss) , v (vv) , a (aa) {}
SVAModifier (Type t, double ss, double vv, double aa) : type (t), s (ss) , v (vv) , a (aa) {}
SVAModifier () : type (Add), s (0), v (0), a (0) {} /* no-op modifier */
HSV operator () (HSV& hsv) const;
std::string to_string () const;

View File

@ -529,9 +529,9 @@ HSV::mod (SVAModifier const & svam)
SVAModifier::SVAModifier (string const &str)
: type (Add)
, s (-1.0)
, v (-1.0)
, a (-1.0)
, s (0)
, v (0)
, a (0)
{
from_string (str);
}