summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/core/method_bind.hpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-08 00:48:02 +0200
committerGitHub <noreply@github.com>2024-05-08 00:48:02 +0200
commit17a82e7f94c67a443fa708f1a625e6cf9fb4ad2f (patch)
treed0d598c26d18809a591ccb17bfada5b16c2a3e30 /include/godot_cpp/core/method_bind.hpp
parentf5c2b38724fdca48403680b53cf76e664bc5ccce (diff)
parenta434850069212b2d2dbe70fd82c4e5774b739040 (diff)
downloadredot-cpp-17a82e7f94c67a443fa708f1a625e6cf9fb4ad2f.tar.gz
Merge pull request #1374 from dsnopek/gdext-docs
Allow submitting documentation to the Godot editor
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);
}
};