Browse Source

Add missing `OP_POWER` operator to `Variant`

(cherry picked from commit f037a697eb2ce45d63840dfe87c48212d7cbf09e)
A Thousand Ships 1 year ago
parent
commit
1c03aa7746
2 changed files with 2 additions and 0 deletions
  1. 1 0
      binding_generator.py
  2. 1 0
      include/godot_cpp/variant/variant.hpp

+ 1 - 0
binding_generator.py

@@ -2334,6 +2334,7 @@ def get_operator_id_name(op):
         "unary-": "negate",
         "unary+": "positive",
         "%": "module",
+        "**": "power",
         "<<": "shift_left",
         ">>": "shift_right",
         "&": "bit_and",

+ 1 - 0
include/godot_cpp/variant/variant.hpp

@@ -122,6 +122,7 @@ public:
 		OP_NEGATE,
 		OP_POSITIVE,
 		OP_MODULE,
+		OP_POWER,
 		// bitwise
 		OP_SHIFT_LEFT,
 		OP_SHIFT_RIGHT,