mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #104711 from shoonny/create_root_node_name_casing
Fix create root node dialog to follow preferred node name casing
This commit is contained in:
commit
2ba5168bec
1 changed files with 4 additions and 0 deletions
|
@ -1526,6 +1526,10 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
|
|||
|
||||
add_root_node(new_node);
|
||||
|
||||
if (GLOBAL_GET("editor/naming/node_name_casing").operator int() != NAME_CASING_PASCAL_CASE) {
|
||||
new_node->set_name(Node::adjust_name_casing(new_node->get_name()));
|
||||
}
|
||||
|
||||
EditorNode::get_singleton()->edit_node(new_node);
|
||||
editor_selection->clear();
|
||||
editor_selection->add_node(new_node);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue