summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDualMatrix <piet.goris@gmail.com>2018-08-15 16:55:17 +0200
committerDualMatrix <piet.goris@gmail.com>2018-08-16 17:14:52 +0200
commit9896b7bbf920d35e301848abe46a8fd7d944952b (patch)
tree0dff11e00065941b277bf65804fb683066c3df59
parentef5095720b56e72d99b8ca2773e2a5fa24f7097d (diff)
Fixed custom nodes not working properly with favorites and recently used in create node window.
-rw-r--r--editor/create_dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp
index 5dd5b7fcc5..256783db09 100644
--- a/editor/create_dialog.cpp
+++ b/editor/create_dialog.cpp
@@ -587,7 +587,7 @@ void CreateDialog::_history_selected() {
if (!item)
return;
- search_box->set_text(item->get_text(0));
+ search_box->set_text(item->get_text(0).get_slicec(' ', 0));
_update_search();
}
@@ -597,7 +597,7 @@ void CreateDialog::_favorite_selected() {
if (!item)
return;
- search_box->set_text(item->get_text(0));
+ search_box->set_text(item->get_text(0).get_slicec(' ', 0));
_update_search();
}