Merge pull request #73971 from tlobig/master
Converter: Rename 3.x Vector2 `clamped` to `limit_length`
This commit is contained in:
commit
303430ef38
2 changed files with 16 additions and 16 deletions
|
@ -1055,7 +1055,7 @@ bool ProjectConverter3To4::test_array_names() {
|
|||
|
||||
// List of excluded functions from builtin types and global namespace, because currently it is not possible to get list of functions from them.
|
||||
// This will be available when https://github.com/godotengine/godot/pull/49053 or similar will be included into Godot.
|
||||
static const char *builtin_types_excluded_functions[] = { "dict_to_inst", "inst_to_dict", "bytes_to_var", "bytes_to_var_with_objects", "db_to_linear", "deg_to_rad", "linear_to_db", "rad_to_deg", "randf_range", "snapped", "str_to_var", "var_to_str", "var_to_bytes", "var_to_bytes_with_objects", "move_toward", "uri_encode", "uri_decode", "remove_at", "get_rotation_quaternion", "clamp", "grow_side", "is_absolute_path", "is_valid_int", "lerp", "to_ascii_buffer", "to_utf8_buffer", "to_utf32_buffer", "snapped", "remap", "rfind", nullptr };
|
||||
static const char *builtin_types_excluded_functions[] = { "dict_to_inst", "inst_to_dict", "bytes_to_var", "bytes_to_var_with_objects", "db_to_linear", "deg_to_rad", "linear_to_db", "rad_to_deg", "randf_range", "snapped", "str_to_var", "var_to_str", "var_to_bytes", "var_to_bytes_with_objects", "move_toward", "uri_encode", "uri_decode", "remove_at", "get_rotation_quaternion", "limit_length", "grow_side", "is_absolute_path", "is_valid_int", "lerp", "to_ascii_buffer", "to_utf8_buffer", "to_utf32_buffer", "snapped", "remap", "rfind", nullptr };
|
||||
for (int current_index = 0; builtin_types_excluded_functions[current_index]; current_index++) {
|
||||
all_functions.insert(builtin_types_excluded_functions[current_index]);
|
||||
}
|
||||
|
|
|
@ -579,7 +579,7 @@ const char *RenamesMap3To4::gdscript_function_renames[][2] = {
|
|||
// Remember to add them to the builtin_types_excluded_functions variable, because for now these functions cannot be listed.
|
||||
//{ "empty", "is_empty" }, // Array -- Used as custom rule. Be careful, this will be used everywhere.
|
||||
//{ "remove", "remove_at" }, // Array -- Breaks Directory and several more.
|
||||
{ "clamped", "clamp" }, // Vector2 -- Be careful, this will be used everywhere.
|
||||
{ "clamped", "limit_length" }, // Vector2
|
||||
{ "get_rotation_quat", "get_rotation_quaternion" }, // Basis
|
||||
{ "grow_margin", "grow_side" }, // Rect2
|
||||
{ "invert", "reverse" }, // Array -- Give it a check. Be careful, this will be used everywhere.
|
||||
|
@ -1026,7 +1026,7 @@ const char *RenamesMap3To4::csharp_function_renames[][2] = {
|
|||
// Builtin types
|
||||
// { "Empty", "IsEmpty" }, // Array -- Used as custom rule. Be careful, this will be used everywhere.
|
||||
// { "Remove", "RemoveAt" }, // Array -- Breaks Directory and several more.
|
||||
{ "Clamped", "Clamp" }, // Vector2 -- Be careful, this will be used everywhere.
|
||||
{ "Clamped", "LimitLength" }, // Vector2
|
||||
{ "GetRotationQuat", "GetRotationQuaternion" }, // Basis
|
||||
{ "GrowMargin", "GrowSide" }, // Rect2
|
||||
{ "Invert", "Reverse" }, // Array -- Give it a check. Be careful, this will be used everywhere.
|
||||
|
|
Loading…
Add table
Reference in a new issue