Added it to the build.

This commit is contained in:
Relintai 2022-06-13 22:52:48 +02:00
parent fbde39b27f
commit d2a8b9ad86
2 changed files with 16 additions and 7 deletions

View File

@ -19,9 +19,18 @@ sources = [
"nodes/bases/gradient_base.cpp",
"nodes/bases/polygon_base.cpp",
#"editor/mat_maker_gd_editor.cpp",
#"editor/mm_create_name_popup.cpp",
#"editor/mm_graph_node.cpp",
"editor/mat_maker_gd_editor.cpp",
"editor/mm_create_name_popup.cpp",
"editor/mm_graph_node.cpp",
"editor/widgets/color_picker_popup/color_picker_popup.cpp",
"editor/widgets/curve_edit/control_point.cpp",
"editor/widgets/curve_edit/curve_dialog.cpp",
"editor/widgets/curve_edit/curve_edit.cpp",
"editor/widgets/curve_edit/curve_editor.cpp",
"editor/widgets/curve_edit/curve_view.cpp",
"editor/widgets/curve_edit/slope_point.cpp",
]

View File

@ -35,8 +35,8 @@ SOFTWARE.
#include "nodes/bases/gradient_base.h"
#include "nodes/bases/polygon_base.h"
//#include "editor/mat_maker_gd_editor.h"
//#include "editor/mm_graph_node.h"
#include "editor/mat_maker_gd_editor.h"
#include "editor/mm_graph_node.h"
static _MMAlgos *_mm_algos_singleton = nullptr;
@ -51,8 +51,8 @@ void register_material_maker_types() {
ClassDB::register_class<GradientBase>();
ClassDB::register_class<PolygonBase>();
//ClassDB::register_class<MMGraphNode>();
//ClassDB::register_class<MatMakerGDEditor>();
ClassDB::register_class<MMGraphNode>();
ClassDB::register_class<MatMakerGDEditor>();
_mm_algos_singleton = memnew(_MMAlgos);
Engine::get_singleton()->add_singleton(Engine::Singleton("MMAlgos", _MMAlgos::get_singleton()));