Skip to content

"Create New Scene" dialog doesn't follow naming conventions #78946

Closed
@nyxkn

Description

@nyxkn

Godot version

master (4642448)

System information

Godot v4.1.rc (4642448) - Arch Linux #1 ZEN SMP PREEMPT_DYNAMIC Wed, 21 Jun 2023 20:46:07 +0000 - Vulkan (Compatibility) - AMD Radeon R9 380 Series (tonga, LLVM 15.0.7, DRM 3.52, 6.3.9-zen1-1-zen) () - AMD Ryzen 5 5600X 6-Core Processor (12 Threads)

Issue description

This is the dialog that shows up when you right click in the FileSystem dock and select Create New -> Scene...

We are prompted for a required filename to save the scene as, and an optional root name to use for the root node. If I leave the optional name empty, and use a snake_case name for the filename, the root node of the scene will also be set to the same snake_case name. I'd instead expect to have it converted to PascalCase.

Note that this only happens through this specific dialog. Creating a scene through main menu Scene -> New Scene creates an "unsaved" scene with a PascalCase root node, and when saved, it will correctly be renamed to snake_case.

Steps to reproduce

In FileSystem dock, right click and select Create New -> Scene....

Minimal reproduction project

None.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions