implemented node flags

This commit is contained in:
itsmattkc
2021-12-19 13:19:31 -08:00
parent 671fafb496
commit 21165cb2ff
6 changed files with 36 additions and 4 deletions
+17
View File
@@ -94,6 +94,11 @@ public:
kCategoryCount
};
enum Flag {
kNone = 0,
kDontShowInParamView = 0x1
};
Node();
virtual ~Node() override;
@@ -116,6 +121,11 @@ public:
const QUuid &GetUUID() const {return uuid_;}
void SetUUID(const QUuid &uuid) {uuid_ = uuid;}
const uint64_t &GetFlags() const
{
return flags_;
}
/**
* @brief Clear current node variables and replace them with
*/
@@ -1036,6 +1046,11 @@ protected:
tooltip_ = s;
}
void SetFlags(const uint64_t &f)
{
flags_ = f;
}
signals:
/**
* @brief Signal emitted when SetLabel() is called
@@ -1315,6 +1330,8 @@ private:
QUuid uuid_;
uint64_t flags_;
private slots:
/**
* @brief Slot when a keyframe's time changes to keep the keyframes correctly sorted by time