[3.x] Fix "Property not found: editor/node_naming/name_casing"

This commit is contained in:
Danil Alexeev 2021-08-15 16:54:19 +03:00
parent 450f7fdc39
commit 1372ba681b
No known key found for this signature in database
GPG Key ID: 124453E157DA8DC7
1 changed files with 1 additions and 1 deletions

View File

@ -6281,7 +6281,7 @@ bool CanvasItemEditorViewport::_cyclical_dependency_exists(const String &p_targe
void CanvasItemEditorViewport::_create_nodes(Node *parent, Node *child, String &path, const Point2 &p_point) {
// Adjust casing according to project setting. The file name is expected to be in snake_case, but will work for others.
String name = path.get_file().get_basename();
switch (ProjectSettings::get_singleton()->get("editor/node_naming/name_casing").operator int()) {
switch (ProjectSettings::get_singleton()->get("node/name_casing").operator int()) {
case NAME_CASING_PASCAL_CASE:
name = name.capitalize().replace(" ", "");
break;