You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
fixed an issue where there is no edited function but user double clicks on an available functions
This commit is contained in:
@@ -1099,6 +1099,9 @@ void VisualScriptEditor::_expression_text_changed(const String &p_text, int p_id
|
|||||||
|
|
||||||
void VisualScriptEditor::_available_node_doubleclicked() {
|
void VisualScriptEditor::_available_node_doubleclicked() {
|
||||||
|
|
||||||
|
if (edited_func == String())
|
||||||
|
return;
|
||||||
|
|
||||||
TreeItem *item = nodes->get_selected();
|
TreeItem *item = nodes->get_selected();
|
||||||
|
|
||||||
if (!item)
|
if (!item)
|
||||||
@@ -1107,7 +1110,6 @@ void VisualScriptEditor::_available_node_doubleclicked() {
|
|||||||
String which = item->get_metadata(0);
|
String which = item->get_metadata(0);
|
||||||
if (which == String())
|
if (which == String())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Vector2 ofs = graph->get_scroll_ofs() + graph->get_size() * 0.5;
|
Vector2 ofs = graph->get_scroll_ofs() + graph->get_size() * 0.5;
|
||||||
|
|
||||||
if (graph->is_using_snap()) {
|
if (graph->is_using_snap()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user