began UI for keyframing
Largely extending the existing NodeParamView with functionality from the previous release.
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
NodeInput::NodeInput(const QString& id) :
|
||||
NodeParam(id),
|
||||
keyframable_(true),
|
||||
keyframing_(false),
|
||||
dependent_(true),
|
||||
has_minimum_(false),
|
||||
@@ -241,6 +242,16 @@ void NodeInput::set_is_keyframing(bool k)
|
||||
keyframing_ = k;
|
||||
}
|
||||
|
||||
bool NodeInput::is_keyframable() const
|
||||
{
|
||||
return keyframable_;
|
||||
}
|
||||
|
||||
void NodeInput::set_is_keyframable(bool k)
|
||||
{
|
||||
keyframable_ = k;
|
||||
}
|
||||
|
||||
const QVariant &NodeInput::minimum() const
|
||||
{
|
||||
return minimum_;
|
||||
|
||||
@@ -98,6 +98,16 @@ public:
|
||||
*/
|
||||
void set_is_keyframing(bool k);
|
||||
|
||||
/**
|
||||
* @brief Return whether this input can be keyframed or not
|
||||
*/
|
||||
bool is_keyframable() const;
|
||||
|
||||
/**
|
||||
* @brief Set whether this input can be keyframed or not
|
||||
*/
|
||||
void set_is_keyframable(bool k);
|
||||
|
||||
const QVariant& minimum() const;
|
||||
bool has_minimum() const;
|
||||
void set_minimum(const QVariant& min);
|
||||
@@ -122,6 +132,11 @@ private:
|
||||
*/
|
||||
DataType data_type_;
|
||||
|
||||
/**
|
||||
* @brief Internal keyframable value
|
||||
*/
|
||||
bool keyframable_;
|
||||
|
||||
/**
|
||||
* @brief Internal keyframe array
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user