Skip to content

Commit f037a69

Browse files
Add missing OP_POWER operator to Variant
1 parent dd62b96 commit f037a69

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

binding_generator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,6 +2433,7 @@ def get_operator_id_name(op):
24332433
"unary-": "negate",
24342434
"unary+": "positive",
24352435
"%": "module",
2436+
"**": "power",
24362437
"<<": "shift_left",
24372438
">>": "shift_right",
24382439
"&": "bit_and",

include/godot_cpp/variant/variant.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ class Variant {
122122
OP_NEGATE,
123123
OP_POSITIVE,
124124
OP_MODULE,
125+
OP_POWER,
125126
// bitwise
126127
OP_SHIFT_LEFT,
127128
OP_SHIFT_RIGHT,

0 commit comments

Comments
 (0)