소스 검색

Merge pull request #1349 from AThousandShips/op_fix

Add missing `OP_POWER` operator to `Variant`
Rémi Verschelde 1 년 전
부모
커밋
edf1637c2c
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      binding_generator.py
  2. 1 0
      include/godot_cpp/variant/variant.hpp

+ 1 - 0
binding_generator.py

@@ -2433,6 +2433,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,