summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/core/method_bind.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/godot_cpp/core/method_bind.hpp')
-rw-r--r--include/godot_cpp/core/method_bind.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/godot_cpp/core/method_bind.hpp b/include/godot_cpp/core/method_bind.hpp
index 4afd7b8..eabd6ec 100644
--- a/include/godot_cpp/core/method_bind.hpp
+++ b/include/godot_cpp/core/method_bind.hpp
@@ -412,6 +412,7 @@ public:
method = p_method;
generate_argument_types(sizeof...(P));
set_argument_count(sizeof...(P));
+ set_const(true);
}
};
@@ -578,6 +579,7 @@ public:
generate_argument_types(sizeof...(P));
set_argument_count(sizeof...(P));
set_return(true);
+ set_const(true);
}
};