| 3517 | } |
| 3518 | |
| 3519 | String EditorNode::adjust_scene_name_casing(const String &p_root_name) { |
| 3520 | switch (GLOBAL_GET("editor/naming/scene_name_casing").operator int()) { |
| 3521 | case SCENE_NAME_CASING_AUTO: |
| 3522 | // Use casing of the root node. |
| 3523 | break; |
| 3524 | case SCENE_NAME_CASING_PASCAL_CASE: |
| 3525 | return p_root_name.to_pascal_case(); |
| 3526 | case SCENE_NAME_CASING_SNAKE_CASE: |
| 3527 | return p_root_name.to_snake_case(); |
| 3528 | case SCENE_NAME_CASING_KEBAB_CASE: |
| 3529 | return p_root_name.to_kebab_case(); |
| 3530 | case SCENE_NAME_CASING_CAMEL_CASE: |
| 3531 | return p_root_name.to_camel_case(); |
| 3532 | } |
| 3533 | return p_root_name; |
| 3534 | } |
| 3535 | |
| 3536 | String EditorNode::adjust_script_name_casing(const String &p_file_name, ScriptLanguage::ScriptNameCasing p_auto_casing) { |
| 3537 | int editor_casing = GLOBAL_GET("editor/naming/script_name_casing"); |
nothing calls this directly
no test coverage detected