Skip to content

Rename a node on change type if it has the default name

Rafał Mikrut requested to merge github/fork/scayze/change_type_rename into master

Created by: scayze

Ahoy.

I always found it a little confusing that if i change the type of a node in the scene tree, the name of the node will remain the same. i would end up with a node named "StaticBody2D" with a type of a RigidBody2D.

This commit would add that feature. But it will not rename the node when it has been renamed already. Meaning that a Node2D called "Player" will still have that name when it type changes to eg. a KinematicBody.

Merge request reports