Skip to content

Commit

Permalink
Merge pull request #1349 from AThousandShips/op_fix
Browse files Browse the repository at this point in the history
Add missing `OP_POWER` operator to `Variant`
  • Loading branch information
akien-mga authored Jan 11, 2024
2 parents dd62b96 + f037a69 commit edf1637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions binding_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2433,6 +2433,7 @@ def get_operator_id_name(op):
"unary-": "negate",
"unary+": "positive",
"%": "module",
"**": "power",
"<<": "shift_left",
">>": "shift_right",
"&": "bit_and",
Expand Down
1 change: 1 addition & 0 deletions include/godot_cpp/variant/variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ class Variant {
OP_NEGATE,
OP_POSITIVE,
OP_MODULE,
OP_POWER,
// bitwise
OP_SHIFT_LEFT,
OP_SHIFT_RIGHT,
Expand Down

0 comments on commit edf1637

Please sign in to comment.