Added PaintCanvas to the build, and registered it.

This commit is contained in:
Relintai 2022-11-15 12:34:29 +01:00
parent 7b5071fc73
commit 772195a9c3
2 changed files with 3 additions and 0 deletions

View File

@ -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")

View File

@ -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<PaintVisualGrid>();
ClassDB::register_class<PaintNode>();
ClassDB::register_class<PaintCanvas>();
#ifdef TOOLS_ENABLED
EditorPlugins::add_by_type<PaintEditorPlugin>();