striped edges on node rename in SceneTreeDock
This commit is contained in:
parent
463879db56
commit
32e52217ff
@ -777,6 +777,9 @@ void SceneTreeEditor::_renamed() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Trim leading/trailing whitespace to prevent node names from containing accidental whitespace, which would make it more difficult to get the node via `get_node()`.
|
||||||
|
new_name = new_name.strip_edges();
|
||||||
|
|
||||||
if (!undo_redo) {
|
if (!undo_redo) {
|
||||||
n->set_name(new_name);
|
n->set_name(new_name);
|
||||||
which->set_metadata(0, n->get_path());
|
which->set_metadata(0, n->get_path());
|
||||||
|
Loading…
Reference in New Issue
Block a user