shapenode: added gizmos

This commit is contained in:
itsmattkc
2021-09-22 01:45:05 -07:00
parent 2ea29f9ea9
commit 401f8d394c
20 changed files with 340 additions and 52 deletions
+9 -1
View File
@@ -24,6 +24,7 @@
#include "common/rational.h"
#include "node/keyframe.h"
#include "node/param.h"
#include "undo/undocommand.h"
namespace olive {
@@ -38,7 +39,12 @@ public:
void Drag(QVariant value);
void End();
void End(MultiUndoCommand *command);
static bool IsInputBeingDragged()
{
return input_being_dragged;
}
private:
NodeKeyframeTrackReference input_;
@@ -52,6 +58,8 @@ private:
NodeKeyframe* dragging_key_;
QVector<NodeKeyframe*> created_keys_;
static int input_being_dragged;
};
}