godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.96k stars 20.17k forks source link

editor/naming/node_name_casing not respected by `Add Sun to Scene` and `Add Environment to Scene` buttons #87653

Open SylvanSign opened 7 months ago

SylvanSign commented 7 months ago

Tested versions

System information

Windows 10 & Debian GNU/Linux 11 (bullseye)

Issue description

The Add Sun to Scene and Add Environment to Scene buttons for 3D scenes don't respect the editor/naming/node_name_casing project setting

Steps to reproduce

  1. change the editor/naming/node_name_casing project setting to something other than PascalCase
  2. create a new 3D Scene
  3. Click the Add Sun to Scene and Add Environment to Scene buttons in the Edit Sun and Environment settings menu
  4. see that the DirectionalLight3D and WorldEnvironment nodes created by those buttons do not follow the case setting

Minimal reproduction project (MRP)

this can be done with a fresh, empty Godot project. Here's one with naming/node_name_casing=2 (snake_case) casing.zip

FantasmaGolicon commented 7 months ago

Should be a simple fix. I am testing the changes right now, and will be posting a PR.