diff --git a/modules/paint/paint_canvas_background.cpp b/modules/paint/paint_canvas_background.cpp index 2e1843c67..52eaa111b 100644 --- a/modules/paint/paint_canvas_background.cpp +++ b/modules/paint/paint_canvas_background.cpp @@ -55,4 +55,6 @@ PaintCanvasBackground::~PaintCanvasBackground() { } void PaintCanvasBackground::_bind_methods() { + ClassDB::bind_method(D_METHOD("get_pixel_size"), &PaintCanvasBackground::get_pixel_size); + ClassDB::bind_method(D_METHOD("set_pixel_size"), &PaintCanvasBackground::set_pixel_size); } diff --git a/modules/paint/paint_canvas_outline.cpp b/modules/paint/paint_canvas_outline.cpp index 5d2abf030..04ac16a15 100644 --- a/modules/paint/paint_canvas_outline.cpp +++ b/modules/paint/paint_canvas_outline.cpp @@ -69,4 +69,5 @@ PaintCanvasOutline::~PaintCanvasOutline() { } void PaintCanvasOutline::_bind_methods() { + ClassDB::bind_method(D_METHOD("draw_outline_box", "pos", "size", "color", "width"), &PaintCanvasOutline::draw_outline_box); } diff --git a/modules/paint/paint_canvas_outline.h b/modules/paint/paint_canvas_outline.h index 1fed1bef5..0d7f5bfa4 100644 --- a/modules/paint/paint_canvas_outline.h +++ b/modules/paint/paint_canvas_outline.h @@ -41,8 +41,6 @@ public: protected: void _notification(int p_what); static void _bind_methods(); - - }; #endif diff --git a/modules/paint/paint_color_grid.cpp b/modules/paint/paint_color_grid.cpp index 6a6727b2b..d797fa691 100644 --- a/modules/paint/paint_color_grid.cpp +++ b/modules/paint/paint_color_grid.cpp @@ -65,4 +65,5 @@ void PaintColorGrid::_bind_methods() { ADD_SIGNAL(MethodInfo("color_change_request", PropertyInfo(Variant::COLOR, "color"))); ClassDB::bind_method(D_METHOD("change_color_to"), &PaintColorGrid::change_color_to); + ClassDB::bind_method(D_METHOD("add_color_prefab"), &PaintColorGrid::add_color_prefab); } diff --git a/modules/paint/paint_visual_grid.cpp b/modules/paint/paint_visual_grid.cpp index 35d6a6fe0..8ef88d868 100644 --- a/modules/paint/paint_visual_grid.cpp +++ b/modules/paint/paint_visual_grid.cpp @@ -109,4 +109,5 @@ PaintVisualGrid::~PaintVisualGrid() { } void PaintVisualGrid::_bind_methods() { + ClassDB::bind_method(D_METHOD("set_grid_size", "size"), &PaintVisualGrid::set_grid_size); }