From 772195a9c362b98cd94cbf9bc153d3c44fec92fd Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 15 Nov 2022 12:34:29 +0100 Subject: [PATCH] Added PaintCanvas to the build, and registered it. --- modules/paint/SCsub | 1 + modules/paint/register_types.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/modules/paint/SCsub b/modules/paint/SCsub index d77e1d299..e1d8e0b04 100644 --- a/modules/paint/SCsub +++ b/modules/paint/SCsub @@ -34,6 +34,7 @@ module_env.add_source_files(env.modules_sources,"paint_utilities.cpp") module_env.add_source_files(env.modules_sources,"bush_prefabs.cpp") module_env.add_source_files(env.modules_sources,"nodes/paint_node.cpp") +module_env.add_source_files(env.modules_sources,"nodes/paint_canvas.cpp") module_env.add_source_files(env.modules_sources,"deprecated/paint_canvas_layer.cpp") module_env.add_source_files(env.modules_sources,"deprecated/paint_canvas.cpp") diff --git a/modules/paint/register_types.cpp b/modules/paint/register_types.cpp index f198f95f8..e45797d17 100644 --- a/modules/paint/register_types.cpp +++ b/modules/paint/register_types.cpp @@ -45,6 +45,7 @@ SOFTWARE. #include "ui/paint_visual_grid.h" #include "nodes/paint_node.h" +#include "nodes/paint_canvas.h" #ifdef TOOLS_ENABLED #include "paint_editor_plugin.h" @@ -74,6 +75,7 @@ void register_paint_types() { ClassDB::register_class(); ClassDB::register_class(); + ClassDB::register_class(); #ifdef TOOLS_ENABLED EditorPlugins::add_by_type();