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();