Skip to content

Commit

Permalink
Merge pull request godotengine#51693 from dalexeev/fix-name-casing-se…
Browse files Browse the repository at this point in the history
…tting

[3.x] Fix "Property not found: editor/node_naming/name_casing"
  • Loading branch information
akien-mga authored Aug 15, 2021
2 parents 450f7fd + 1372ba6 commit 66497e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/canvas_item_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 66497e2

Please sign in to comment.