Skip to content

Commit

Permalink
Merge pull request #43013 from qarmin/v_or_not_v
Browse files Browse the repository at this point in the history
Fix invalid method names
  • Loading branch information
akien-mga authored Oct 22, 2020
2 parents bfc79a2 + 742251e commit 32be929
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions core/variant_call.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1364,23 +1364,23 @@ void register_variant_methods() {
bind_method(String, naturalnocasecmp_to, sarray("to"), varray());
bind_method(String, length, sarray(), varray());
bind_method(String, substr, sarray("from", "len"), varray(-1));
bind_methodv("find", static_cast<int (String::*)(const String &, int) const>(&String::find), sarray("what", "from"), varray(0));
bind_methodv(find, static_cast<int (String::*)(const String &, int) const>(&String::find), sarray("what", "from"), varray(0));
bind_method(String, count, sarray("what", "from", "to"), varray(0, 0));
bind_method(String, countn, sarray("what", "from", "to"), varray(0, 0));
bind_method(String, findn, sarray("what", "from"), varray(0));
bind_method(String, rfind, sarray("what", "from"), varray(-1));
bind_method(String, rfindn, sarray("what", "from"), varray(-1));
bind_method(String, match, sarray("expr"), varray());
bind_method(String, matchn, sarray("expr"), varray());
bind_methodv("begins_with", static_cast<bool (String::*)(const String &) const>(&String::begins_with), sarray("text"), varray());
bind_methodv(begins_with, static_cast<bool (String::*)(const String &) const>(&String::begins_with), sarray("text"), varray());
bind_method(String, ends_with, sarray("text"), varray());
bind_method(String, is_subsequence_of, sarray("text"), varray());
bind_method(String, is_subsequence_ofi, sarray("text"), varray());
bind_method(String, bigrams, sarray(), varray());
bind_method(String, similarity, sarray("text"), varray());

bind_method(String, format, sarray("values", "placeholder"), varray("{_}"));
bind_methodv("replace", static_cast<String (String::*)(const String &, const String &) const>(&String::replace), sarray("what", "forwhat"), varray());
bind_methodv(replace, static_cast<String (String::*)(const String &, const String &) const>(&String::replace), sarray("what", "forwhat"), varray());
bind_method(String, replacen, sarray("what", "forwhat"), varray());
bind_method(String, repeat, sarray("count"), varray());
bind_method(String, insert, sarray("position", "what"), varray());
Expand Down Expand Up @@ -1510,7 +1510,7 @@ void register_variant_methods() {
bind_method(Rect2, merge, sarray("b"), varray());
bind_method(Rect2, expand, sarray("to"), varray());
bind_method(Rect2, grow, sarray("by"), varray());
bind_methodv("grow_margin", &Rect2::grow_margin_bind, sarray("margin", "by"), varray());
bind_methodv(grow_margin, &Rect2::grow_margin_bind, sarray("margin", "by"), varray());
bind_method(Rect2, grow_individual, sarray("left", "top", "right", "bottom"), varray());
bind_method(Rect2, abs, sarray(), varray());

Expand All @@ -1525,7 +1525,7 @@ void register_variant_methods() {
bind_method(Rect2i, merge, sarray("b"), varray());
bind_method(Rect2i, expand, sarray("to"), varray());
bind_method(Rect2i, grow, sarray("by"), varray());
bind_methodv("grow_margin", &Rect2i::grow_margin_bind, sarray("margin", "by"), varray());
bind_methodv(grow_margin, &Rect2i::grow_margin_bind, sarray("margin", "by"), varray());
bind_method(Rect2i, grow_individual, sarray("left", "top", "right", "bottom"), varray());
bind_method(Rect2i, abs, sarray(), varray());

Expand Down Expand Up @@ -1581,9 +1581,9 @@ void register_variant_methods() {
bind_method(Plane, distance_to, sarray("point"), varray());
bind_method(Plane, has_point, sarray("point", "epsilon"), varray(CMP_EPSILON));
bind_method(Plane, project, sarray("point"), varray());
bind_methodv("intersect_3", &Plane::intersect_3_bind, sarray("b", "c"), varray());
bind_methodv("intersects_ray", &Plane::intersects_ray_bind, sarray("from", "dir"), varray());
bind_methodv("intersects_segment", &Plane::intersects_segment_bind, sarray("from", "to"), varray());
bind_methodv(intersect_3, &Plane::intersect_3_bind, sarray("b", "c"), varray());
bind_methodv(intersects_ray, &Plane::intersects_ray_bind, sarray("from", "dir"), varray());
bind_methodv(intersects_segment, &Plane::intersects_segment_bind, sarray("from", "to"), varray());

/* Quaternion */

Expand Down Expand Up @@ -1696,7 +1696,7 @@ void register_variant_methods() {
bind_method(Basis, transposed, sarray(), varray());
bind_method(Basis, orthonormalized, sarray(), varray());
bind_method(Basis, determinant, sarray(), varray());
bind_methodv("rotated", static_cast<Basis (Basis::*)(const Vector3 &, float) const>(&Basis::rotated), sarray("axis", "phi"), varray());
bind_methodv(rotated, static_cast<Basis (Basis::*)(const Vector3 &, float) const>(&Basis::rotated), sarray("axis", "phi"), varray());
bind_method(Basis, scaled, sarray("scale"), varray());
bind_method(Basis, get_scale, sarray(), varray());
bind_method(Basis, get_euler, sarray(), varray());
Expand Down Expand Up @@ -1734,8 +1734,8 @@ void register_variant_methods() {
bind_method(::AABB, get_shortest_axis_index, sarray(), varray());
bind_method(::AABB, get_shortest_axis_size, sarray(), varray());
bind_method(::AABB, get_endpoint, sarray("idx"), varray());
bind_methodv("intersects_segment", &AABB::intersects_segment_bind, sarray("from", "to"), varray());
bind_methodv("intersects_ray", &AABB::intersects_ray_bind, sarray("from", "dir"), varray());
bind_methodv(intersects_segment, &AABB::intersects_segment_bind, sarray("from", "to"), varray());
bind_methodv(intersects_ray, &AABB::intersects_ray_bind, sarray("from", "dir"), varray());

/* Transform */

Expand Down

0 comments on commit 32be929

Please sign in to comment.