ui: Fixed moving bundle nodes was not stored in undo stack
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <QPen>
|
||||
|
||||
#include "utility/messaging/type/MessageGraphNodeBundleSplit.h"
|
||||
#include "utility/messaging/type/MessageGraphNodeMove.h"
|
||||
|
||||
#include "component/view/GraphViewStyle.h"
|
||||
#include "qt/graphics/QtCountCircleItem.h"
|
||||
@@ -46,6 +47,13 @@ void QtGraphNodeBundle::onClick()
|
||||
).dispatch();
|
||||
}
|
||||
|
||||
void QtGraphNodeBundle::moved(const Vec2i& oldPosition)
|
||||
{
|
||||
QtGraphNode::moved(oldPosition);
|
||||
|
||||
MessageGraphNodeMove(m_tokenId, getPosition() - oldPosition).dispatch();
|
||||
}
|
||||
|
||||
void QtGraphNodeBundle::updateStyle()
|
||||
{
|
||||
GraphViewStyle::NodeStyle style;
|
||||
|
||||
Reference in New Issue
Block a user