summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPouleyKetchoupp <pouleyketchoup@gmail.com>2019-11-24 11:00:02 +0100
committerPouleyKetchoupp <pouleyketchoup@gmail.com>2019-11-28 22:57:27 +0100
commite6ebc43d725710f69094afa6ff47d91e50cce1ad (patch)
tree08a53f41b9032f11507f9657fae457cd1c675e78 /core
parent636bc5c32f07050fb387a7f8f5f78f7dc9aef7be (diff)
downloadredot-engine-e6ebc43d725710f69094afa6ff47d91e50cce1ad.tar.gz
Fixed antialiased option for Polygon2D / Line2D
Polygon2D: The property wasn't used anymore after switching from canvas_item_add_polygon() to canvas_item_add_triangle_array() for drawing. Line2D: Added the same property as for Polygon2D & fixed smooth line drawing to use indices correctly. Fixes #26823
Diffstat (limited to 'core')
-rw-r--r--core/class_db.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/class_db.h b/core/class_db.h
index 092469beb7..5df425e662 100644
--- a/core/class_db.h
+++ b/core/class_db.h
@@ -284,6 +284,15 @@ public:
return bind_methodfi(METHOD_FLAGS_DEFAULT, bind, p_method_name, ptr, 6);
}
+ template <class N, class M>
+ static MethodBind *bind_method(N p_method_name, M p_method, const Variant &p_def1, const Variant &p_def2, const Variant &p_def3, const Variant &p_def4, const Variant &p_def5, const Variant &p_def6, const Variant &p_def7) {
+
+ MethodBind *bind = create_method_bind(p_method);
+ const Variant *ptr[7] = { &p_def1, &p_def2, &p_def3, &p_def4, &p_def5, &p_def6, &p_def7 };
+
+ return bind_methodfi(METHOD_FLAGS_DEFAULT, bind, p_method_name, ptr, 7);
+ }
+
template <class M>
static MethodBind *bind_vararg_method(uint32_t p_flags, StringName p_name, M p_method, const MethodInfo &p_info = MethodInfo(), const Vector<Variant> &p_default_args = Vector<Variant>()) {