You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix undo for moving multiple visual shader nodes
This commit is contained in:
@@ -261,7 +261,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);
|
||||
|
||||
Reference in New Issue
Block a user