1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

[3.2] Fix undo for moving multiple visual shader nodes

This commit is contained in:
Yuri Roubinsky
2020-10-06 08:29:41 +03:00
parent b2897f1f7b
commit a65252018c
2 changed files with 27 additions and 4 deletions

View File

@@ -166,7 +166,16 @@ class VisualShaderEditor : public VBoxContainer {
static VisualShaderEditor *singleton;
struct DragOp {
VisualShader::Type type;
int node;
Vector2 from;
Vector2 to;
};
List<DragOp> drag_buffer;
bool drag_dirty = false;
void _node_dragged(const Vector2 &p_from, const Vector2 &p_to, int p_node);
void _nodes_dragged();
bool updating;
void _connection_request(const String &p_from, int p_from_index, const String &p_to, int p_to_index);