fix up SVAModifier constructors
This commit is contained in:
parent
0bdfa05fb3
commit
3fa4063d9b
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user