From c0bbd6edf760bc30c64e99490b57e1a5cf3720cc Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 15 Nov 2022 13:17:37 +0100 Subject: [PATCH] Added a new PaintProject class. --- modules/paint/SCsub | 1 + modules/paint/config.py | 3 ++- modules/paint/nodes/paint_project.cpp | 10 ++++++++++ modules/paint/nodes/paint_project.h | 17 +++++++++++++++++ modules/paint/register_types.cpp | 2 ++ 5 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 modules/paint/nodes/paint_project.cpp create mode 100644 modules/paint/nodes/paint_project.h diff --git a/modules/paint/SCsub b/modules/paint/SCsub index e1d8e0b04..384256764 100644 --- a/modules/paint/SCsub +++ b/modules/paint/SCsub @@ -35,6 +35,7 @@ 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,"nodes/paint_project.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/config.py b/modules/paint/config.py index e8c0a90df..d05f08034 100644 --- a/modules/paint/config.py +++ b/modules/paint/config.py @@ -26,7 +26,8 @@ def get_doc_classes(): "PaintWindow", "PaintNode", - "PaintCanvas" + "PaintCanvas", + "PaintProject" ] def get_doc_path(): diff --git a/modules/paint/nodes/paint_project.cpp b/modules/paint/nodes/paint_project.cpp new file mode 100644 index 000000000..e62af34e8 --- /dev/null +++ b/modules/paint/nodes/paint_project.cpp @@ -0,0 +1,10 @@ +#include "paint_project.h" + +PaintProject::PaintProject() { +} + +PaintProject::~PaintProject() { +} + +void PaintProject::_bind_methods() { +} diff --git a/modules/paint/nodes/paint_project.h b/modules/paint/nodes/paint_project.h new file mode 100644 index 000000000..5000b1f87 --- /dev/null +++ b/modules/paint/nodes/paint_project.h @@ -0,0 +1,17 @@ +#ifndef PAINT_PROJECT_H +#define PAINT_PROJECT_H + +#include "paint_node.h" + +class PaintProject : public PaintNode { + GDCLASS(PaintProject, PaintNode); + +public: + PaintProject(); + ~PaintProject(); + +protected: + static void _bind_methods(); +}; + +#endif diff --git a/modules/paint/register_types.cpp b/modules/paint/register_types.cpp index e45797d17..8b89e68e7 100644 --- a/modules/paint/register_types.cpp +++ b/modules/paint/register_types.cpp @@ -46,6 +46,7 @@ SOFTWARE. #include "nodes/paint_node.h" #include "nodes/paint_canvas.h" +#include "nodes/paint_project.h" #ifdef TOOLS_ENABLED #include "paint_editor_plugin.h" @@ -76,6 +77,7 @@ void register_paint_types() { ClassDB::register_class(); ClassDB::register_class(); + ClassDB::register_class(); #ifdef TOOLS_ENABLED EditorPlugins::add_by_type();