summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-03-10 11:50:49 +0100
committerGitHub <noreply@github.com>2019-03-10 11:50:49 +0100
commit59aa79f2182c070a7f2c274072da50a5a2934e70 (patch)
treeea6eee43026f96382895f3b1523bd578d8b2445b /scene
parent61771ad39b62abe77ba0430ef0d9141b2673e170 (diff)
parent964152ed714606b4bcc98d4e92cea5e859e36bd3 (diff)
Merge pull request #26867 from bojidar-bg/26816-graphnode-title
Fix cursor going to start while editing GraphNode's title
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/graph_node.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scene/gui/graph_node.cpp b/scene/gui/graph_node.cpp
index 8c588109d6..e8692d56d2 100644
--- a/scene/gui/graph_node.cpp
+++ b/scene/gui/graph_node.cpp
@@ -164,7 +164,6 @@ void GraphNode::_resort() {
vofs += size.y;
}
- _change_notify();
update();
connpos_dirty = true;
}
@@ -409,9 +408,12 @@ Size2 GraphNode::get_minimum_size() const {
void GraphNode::set_title(const String &p_title) {
+ if (title == p_title)
+ return;
title = p_title;
- minimum_size_changed();
update();
+ _change_notify("title");
+ minimum_size_changed();
}
String GraphNode::get_title() const {