From f037a697eb2ce45d63840dfe87c48212d7cbf09e Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Sat, 6 Jan 2024 20:54:57 +0100 Subject: [PATCH] Add missing `OP_POWER` operator to `Variant` --- binding_generator.py | 1 + include/godot_cpp/variant/variant.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/binding_generator.py b/binding_generator.py index 478dafe0..a1cd2150 100644 --- a/binding_generator.py +++ b/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", diff --git a/include/godot_cpp/variant/variant.hpp b/include/godot_cpp/variant/variant.hpp index 4b586428..3c64791a 100644 --- a/include/godot_cpp/variant/variant.hpp +++ b/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,