Fix error when duplicating visual shader node inside a Frame
This commit is contained in:
parent
daa81bbb7d
commit
becc98162e
|
@ -60,7 +60,6 @@
|
||||||
#include "scene/gui/view_panner.h"
|
#include "scene/gui/view_panner.h"
|
||||||
#include "scene/main/window.h"
|
#include "scene/main/window.h"
|
||||||
#include "scene/resources/curve_texture.h"
|
#include "scene/resources/curve_texture.h"
|
||||||
#include "scene/resources/image_texture.h"
|
|
||||||
#include "scene/resources/style_box_flat.h"
|
#include "scene/resources/style_box_flat.h"
|
||||||
#include "scene/resources/visual_shader_nodes.h"
|
#include "scene/resources/visual_shader_nodes.h"
|
||||||
#include "scene/resources/visual_shader_particle_nodes.h"
|
#include "scene/resources/visual_shader_particle_nodes.h"
|
||||||
|
@ -5135,7 +5134,7 @@ void VisualShaderEditor::_dup_paste_nodes(int p_type, List<CopyItem> &r_items, c
|
||||||
}
|
}
|
||||||
|
|
||||||
int new_node_id = connection_remap[item.id];
|
int new_node_id = connection_remap[item.id];
|
||||||
int new_frame_id = connection_remap[node->get_frame()];
|
int new_frame_id = node->get_frame();
|
||||||
undo_redo->add_do_method(visual_shader.ptr(), "attach_node_to_frame", type, new_node_id, new_frame_id);
|
undo_redo->add_do_method(visual_shader.ptr(), "attach_node_to_frame", type, new_node_id, new_frame_id);
|
||||||
undo_redo->add_do_method(graph_plugin.ptr(), "attach_node_to_frame", type, new_node_id, new_frame_id);
|
undo_redo->add_do_method(graph_plugin.ptr(), "attach_node_to_frame", type, new_node_id, new_frame_id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue